Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sys(2015) How unique it is?
Message
De
16/01/2002 09:59:36
 
 
À
16/01/2002 09:52:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00605361
Message ID:
00605367
Vues:
7
Hi Mike,

It is mostly reliable. It is possible under some conditions like adding thousands of records to get a dulicate value. On one of my projects we fixed that by adding a random element to the key like this:

lcNewKey =SYS(2015)+ALLT(STR(INT(rand( ) * 100000)))

I have this in production at several clients now without ever having seen a duplicate.

Tim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform