Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IS SYS(2015) really unique?
Message
From
17/03/2003 00:52:26
 
 
To
16/03/2003 21:24:50
Peter Easson
Catalina Trading
Sydney, Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00766401
Message ID:
00766443
Views:
27
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform