Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique key
Message
De
30/10/2010 15:27:32
 
 
À
30/10/2010 15:04:38
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP1
Divers
Thread ID:
01487630
Message ID:
01487637
Vues:
63
Thank you. I want to be able to order this key by chronology, so do I understand that
SUBSTR(SYS(2015),2, 9)+TRANSFORM(_vfp.ProcessId)
would yield unique id's created on different machines at the precise same moment?

dg



>Adding ProcessId to should make the key unique
>
>transform(_vfp.ProcessId)+SYS(2015) 
>
>>I am creating a unique key with substr(SYS(2015),2, 9) as the value. Would it require that 2 users on 2 machines create the key at the same millisecond to get a duplicate, or even at the precise same moment would different machines render different values?
>>
>>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform