Information générale
Catégorie:
Codage, syntaxe et commandes
Jos, Thanks for your reply.
The help file ia ambiguous in this , in fact it says Lock() will lock all records (it does not exclude the zero case)
The functionality has obviously changed from 2.6 to visual as Lock (without specifying record nubers) could be used to lock a file then !!!
Thans for your help.
Gerard
>Gerard,
>
>LOCK() locks a record. FLOCK() locks a file. In VFP7, on an empty file LOCK() returns .F. because there is no record to lock. FLOCK() will return .T.
>
>
>>Hi.
>>In VFP 7, I cannot lock an empty file (even with Multilocks on)
>>
>>In VFP7 and FPW 2.6
>>--------------------
>>Close all
>>Use Temp
>>Zap
>>Appe Blank
>>? Lock() Returns a True
>>
>>In FPW 2.6
>>----------
>>Close all
>>Use temp
>>Zap
>>? Lock() Returns a true
>>
>>
>>In VFP7
>>-------
>>Close all
>>Use Temp
>>Zap
>>? Lock() Returns a False
>>
>>It seems that I cannot lock an empty file in VFP 7. Is this the case ?
>>
>>Regards,
>>
>>gerard
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement