Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RLOCK('name') ALWAYS returns .F.
Message
From
14/09/2001 02:20:19
 
 
To
13/09/2001 17:12:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00556204
Message ID:
00556323
Views:
17
Hi!

In the help I see:

To lock multiple records, you must have SET MULTILOCKS on and you must include the work area number (nWorkArea) or alias (cTableAlias) of the table in which you attempt to lock multiple records.

It is possible another record is already locked by your application, so next time RLOCK() used it cannot lock record because SET MULTILOCKS is OFF. Form the scan loop it is obvious that you require SET MULTILOCKS ON. Also, what OS and Network you use?





>In the click event of save button of a FORM I have code like (I.E. highly sinplifed)
>
>SCAN expr
> IF RLOCK('name')
> m.newvalue = expr
> REPLACE field WITH m.newvalue IN name
> ENDIF
>ENDSCAN
>
>Init has SET REPROCESS 10. Problem RLOCK() ALWAYS returns .F. and thus replace is not executed. Any help appriciated.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform