Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record lock problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00730776
Message ID:
00730780
Views:
5
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
Map
View

Click here to load this message in the networking platform