Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sys(3) Unique Test
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00746521
Message ID:
00746522
Vues:
25
Why not use sys(2015) (which according to help will not return duplicate names) instead of sys(3) (which will return duplicate names if executed more than once in the same millisecond)?

With sys(2015), you can leave off the underscore which is always the first character and get a 9 character unique name.

HTH



>I am putting together a heavily-multiuser application, and I want to make sure my central VFP service is using uniquely-named cursors all the time (they live in the same DataSession). Right now I am just naming them "x"+Sys(3).
>
>Is that random enough? This isn't an app where multiple users have an instance of VFP and are making their own unique cursors, this is a VFP "data server" where a single .dll is taking a lot of SQL from a lot of simultaneous users. I only have 10 chars for a cursor name, so giving the cursors a GUID for a name is out of the question (isn't it?).
>
>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform