Hi Ian ---
First off, is table buffering still on for the table when you try the RLOCK(). Secondly, what is failing and what is the error message?
Finally, RLOCK() and buffering doesn't always get along well....in VFP 3.0, for example, you had to issue a UNLOCK RECORD 0 after a TABLEREVERT() to unlock the header of a table.
>After I issue a TABLEUPDATE(.T.), records that are no longer being viewed on tables with OPTIMISTIC ROW BUFFERING are failing at a:
>
>> IF RLOCK()=.t.
>> MESSAGEBOX(XXXXXXX)
>> ENDIF
>
>routine. Apparently they are not being unlocked. Why is that? Do I have to use UNLOCK???
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05