You should also note that you may be confusing record locking and file locking. lock() is the same as rlock(), and locks a single record.
Hilmar.
>>Is this the expected behavior for IsFlocked()?
>>
>>I have 2 forms each with private datasessions with the same table open. If I LOCK() the table in form 1 and query IsFlocked() in form 2 it returns .F.. Is this expected?
>>
>>Thanks in advance.
>
>Yes. It works for the current DS only. You can check lock status with low-level functions fopen and fclose.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)