Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form - changing the controls source property
Message
 
À
19/10/1997 11:41:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00054836
Message ID:
00055477
Vues:
34
>> * NextId.Prg
>> LPARAMETERS pcTable
>> IF NOT USED("SysKeys")
>> SELECT 0
>> USE SysKeys ALIAS SysKeys AGAIN
>> ELSE
>> SELECT SysKeys
>> ENDIF
>> SET ORDER TO TableName
>> SEEK UPPER(pcTable)
>> DO WHILE NOT FLOCK()
>> ENDDO
>> IF FOUND()
>> liKey = NextID
>> REPLACE NextId WITH NextID + 1
>> ELSE
>> APPEND BLANK
>> REPLACE NextId WITH 1
>> liKey = 0
>> ENDIF
>> UNLOCK
>
>Is there any special consideration in order to use FLOCK() instead of RLOCK()?
Michel,

No, my actual code uses RLOCK() I just typed FLOCK() in the message by accident. Actually RLOCK() is probably better.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform