Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique Temporary File Names
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00813444
Message ID:
00815481
Views:
10
>I had the same problem with creating lots of random numbers, I had to stick a random delay in seconds in the loop. This solved the problem.
>
>Many thanks for reminding me
>
>:)

We have been using SYS(2015) for years without any problem. No delay required.
FILE1=RIGHT(SYS(2015),8)+".TXT
REPORT FORM MyReport TO (FILE1) NOCONSOLE
MODI COMM (FILE1) WINDOW W_SHOW NOEDIT
...
ERASE (FILE1)
Try this in a small program. You will never get a duplicate even on the fastest computer.
FILE1=RIGHT(SYS(2015),8)+".TXT
FILE2=RIGHT(SYS(2015),8)+".TXT
FILE3=RIGHT(SYS(2015),8)+".TXT
FILE4=RIGHT(SYS(2015),8)+".TXT
FILE5=RIGHT(SYS(2015),8)+".TXT
Réal Philippon
www.ultra.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform