RE: [U2] UV: how best for subr to ask "Do I own a readu lock for [file & rec0?"

2004-09-10 Thread Stevenson, Charles
Thank-you! I couldn't remember or find it for some reason. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David T. Meeks Try using the RECORDLOCKED function... Locked = RECORDLOCKED( file.variable, record.ID ) It will return you a value indicating the

RE: [U2] UV: how best for subr to ask "Do I own a readu lock for [file & rec0?"

2004-09-10 Thread Peter Olson
when you enter the routine, try IF RECORDLOCKED( F.VAR , ID ) THEN set a flag for that file/id END do WRITEU's when leaving the routine, test the flag to see if the record should be released. -Original Message- From: [EMAIL PROT

Re: [U2] UV: how best for subr to ask "Do I own a readu lock for [file & rec0?"

2004-09-10 Thread David T. Meeks
Try using the RECORDLOCKED function... Locked = RECORDLOCKED( file.variable, record.ID ) It will return you a value indicating the locked status, including the type of lock and whether you own it or not (for example, it'll tell you that you have a READL on it already, or that Joe has a FILELOCK