Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi user unique file names?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00625605
Message ID:
00625630
Views:
8
Hi,

>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?

Another option would be to use a WIN-API to generate a GUID (sth. like {12345-4567...}. You could use the GUID as the filename. GUIDs are unique in any case.

If you're interested in a function to create GUIDs, I can post it here.

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform