Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IS SYS(2015) really unique?
Message
 
À
16/03/2003 21:24:50
Peter Easson
Catalina Trading
Sydney, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00766401
Message ID:
00766413
Vues:
24
>Hi David,
>You could also introduce a microsleep into the UDF
>

>FUNCTION GetUniqueID()
> inkey(0.001)
> return sys(2015)
>ENDFUNC
>
>or alternatively use Declare Sleep etc etc
>
>Peter Easson, Sydney

SYS(2015) is infact unique regardless of how many times per second you want it - SYS(3) used to have the problem that you are thinking of. Not that any of this actually helps when thinking about PK values in a multi-user system :)
Cheers,
Jamie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform