General information
Category:
Coding, syntax & commands
Thanks, Sergey. I appreciate your help. That worked!
Ken
>Ken,
>
>>I'm a newbie working on my first multi-user app. and seem to be having a problem with Rlock(). The code I use to lock the record is something to the effect of:
>>? Rlock('Recno()', 'mytable')
>
>I'm not sure what are you trying to do with this commnad but it'll always return .F. because the first parameter isn't string with record number but string 'Recno()'.
>
>>If Rlock()
>
>This one tries to lock current record in the current work area.
>
>> ....
>> ......
>>Unlock('Recno()', 'mytable')
>
>UNLOCK is a command not function. UNLOCK RECORD (RECNO()) will unlock current record in the current work area. UNLOCK will unlock all records.
>
>>else
>>wait 'Record is in use' wind
>>endif
>>
>>If I run the above code on Recn() = 5 and try to lock Recn() = 6 on another workstation, the lock fails.
>
>It's old way to create multi-user applications. I would recomend that you read Programming for Shared Access in the help.
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