Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IS SYS(2015) really unique?
Message
De
17/03/2003 00:52:26
 
 
À
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:
00766443
Vues:
26
Hi Peter, this would not work because if as David says in his post that SYS(2015) only returns "unique on a given CPU/clock. So it's possible that two users may generate the same number in a network application" then your "microsleep" would be running on all machines too and therefore you're back to the same problem.

Have a look at what Tamor Granor said Re: Sys(3) Unique Test Thread #746521 Message #746648


running on local PCs.

>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
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform