General information
Category:
Coding, syntax & commands
VFP will lock the record for you automatically with pessimistic table buffering as soon as a field is changed. You shouldn't mix RLOCK with buffering (table or record, optimistic or pessimistic), because this will confuse VFP.
HTH
>I use my file and file buffering = 4 (Table buffering).
>Before write in it, I call RLOCK.
>Ex:
>
>SELECT FILE
>RLOCK
>REPLACE ...
>
>If I call UNLOCK, I get an error (File is in use) with TABLEUPDATE(.t.,.t.)
>
>EX:
>
>IF ! TABLEUPDATE()
> AERROR(zvERR)
>ENDIF
>
>Do you know why?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only