Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shorter than sys(2015)
Message
De
04/02/2015 15:03:11
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
04/02/2015 08:24:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01614860
Message ID:
01614888
Vues:
61
>>>Hi,
>>>
>>>Who knows a shorter unique result than SYS(2015) delivers?
>>
>>Hi Peter
>>
>>could you explain what those uniqueness is good for?
>>SYS(2015) is not very good uniqe (for example for temp files on a multiuser scenario its not fast enough, I had crashes for non unique filles)
>>
>>This is by the way it is created.
>
>A colleague needs it to prevent that two users simultaneously create a temporary file. But more important is that he has only 5 positions to store the unique part.
>
>My guess is that he can use the right five positions of sys(2015) and delete the temporary file after a while.
>
>He wants to know the algorithm behind sys(2015).

If you want to guarantee unique tmp files, you may create tmp files to put each users own c:\users folder. This worked for me...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform