Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RLOCK('name') ALWAYS returns .F.
Message
De
14/09/2001 09:07:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00556204
Message ID:
00556405
Vues:
16
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform