Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique Temporary File Names
Message
De
25/07/2003 11:10:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00813444
Message ID:
00813502
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform