Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RLOCK('name') ALWAYS returns .F.
Message
From
14/09/2001 09:07:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00556204
Message ID:
00556405
Views:
15
>See comments below:
>
>>In the click event of save button of a FORM I have code like (I.E. highly sinplifed)
>>
>><b>SCAN expr</b>
This is not real code, just meant to show begining of Scan Loop, actual code is
  
  SELECT tablea
  GOTO TOP
  SCAN FOR fielda.tablea <> 0

"name" refers to a table which is already on the correct record. 
Why does RLOCK("name") always return .F.?  How do I fix it.  Some else suggested I net to set MULTILOCKS ON.

>* The line of code above is incorrect.
>
>>  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.
>
>Is it possible that table with alias 'name' is at EOF?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform