Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique Temporary File Names
Message
From
25/07/2003 11:10:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00813444
Message ID:
00813502
Views:
14
>Cetin,
>
>sys(2015) seems to create names that are 10 characters long, not 8 characters long, will this be a probelm for FPD26?
>
>Regards
>Robin
No it doesn't fpd26 can easily recognize them. ie:

lcFileName = sys(2015)+'.tmp'
use customer
copy to (lcFilename)
use (lcFileName) alias myCustomer
* do whatever
use
erase (lcFileName)

PS: Sys(2015) is guaranteed to be unique for a given computer even if called in the same millisecond. sys(3) is not guaranteed.
In a multiuser system you might stuff the first character (which is always an underscore) with a letter reserved for a particular station.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform