>When trying to use the "ISLOCKED()" function to determine if a record is locked I getting strange results. For example:
>
>I open a table with exclusive off on two machines. I lock it using the "LOCK()" function on one machine. On the other I run this code
>
>IF ISLOCKED()
> messagebox("Record is locked")
>ELSE
> messagebox("Record is UnLocked")
>ENDIF
>
>The file being tested has only 3 records and I am locking the first one. This function returns unlocked on all three records. However, if I try to lock record number one on the second machine using "RLOCK()" It fails because the record is locked.... HELP
ISLOCKED() is a pretty useless function. It only tells you if you have a lock on a record, not if another workstation has one.