Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi user unique file names?
Message
From
27/02/2002 05:54:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00625605
Message ID:
00625615
Views:
9
Hi Caroline

>Is there a way to generate a unique file name in a multi user environment? I understand that Sys(2015) will do the job but if the file is to be saved to a network drive/share and two people go to create one at the same time, what is the outcome?

According to the Help File, even calls in the same millisecond interval generate different values:

"The name that SYS(2015) returns is created from the system date and system time. Calling SYS(2015) more than once during the same millisecond interval will return a unique character string."
----
Regards
Andy Kramek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform