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

Click here to load this message in the networking platform