Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does VFP create the temporal filenames?
Message
 
To
01/08/2001 06:37:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00538049
Message ID:
00538307
Views:
10
>Use sys(2015) to create temp files.
>If you need absolutely 8 in lenght, thinking a temp file's lifecyle is not long, you could use :
>
>'_'+substr(sys(2015),4)
>
>or make 2 chars part of extension :
>
>stuff(sys(2015),9,0,'.')

FYI:

If you want to know how SYS(2015) works and how to convert it to Datetime and vise versa, see FILE#9704

For instance substr(sys(2015),4) will be unique for 36 days.

hth,
Frank Camp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform