Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How unique is sys(2015) ?
Message
From
27/12/2005 14:30:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01081037
Message ID:
01081070
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>Thanks a lot. That is very clear.
>
>>The value returned by SYS(2015) is based on the system clock. It'll be unique on one PC but the same value maybe generated on different PC's. Download Convert SYS(2015) value back File #9704 to see details.


Sergey gave you the correct explanation.
I have used a routine to avoid this problem for many years. It was originally by Pat Adams (and that is going back to the DOS days).
I have it now in my oUtility class that I instantiate early in the program.

It basically returns the following:
Return Substr(Sys(3),4,4) + Substr(Sys(2015),7,4)
You can customize it by prepending letters, or maybe the current user initials or workstation name, or whatever.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform