Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about File() fundtion
Message
From
03/04/2004 17:04:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/04/2004 19:51:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00891861
Message ID:
00892049
Views:
32
>Hi, Dawa-
>
>>Thank you for the correction.
>>Could you explain why a fast process would affect the uniqueness of a file name, if you don't mind?
>
>Well, I double-checked the help file, and now I'm uncertain that the fast process will be a problem. Since it's based on the system date and time, I thought that more than once a milisecond would cause a problem, but the help explicitly says that the file names _will_ be unique if calls occur within a millisecond. So, I apologize for that misdirection.
>
>However, I'd still use the API for something like this since the function isn't officially a file-based function.

It's unique on the same machine - however, if two (or multiple) machines were using sys(2015) at the same time, there's a chance they'd eventually produce the same string... pretty much as in the proverbial Shakespearean monkeys paradigm. Of course, the solution to this is quite simple: prefix the filenames with a machine-specific string.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform