Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sys(2015) How unique it is?
Message
De
16/01/2002 10:05:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/01/2002 09:52:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00605361
Message ID:
00605374
Vues:
13
>Hi,
>
>I just want to ask if the sys(2015) a reliable source of producing unique string. If it is, what is its basis for generating the unique string. I never encountered two same string generated by the sys(2015) function but this does not satisfy the thought that it might produce the same result once I use it too often on different methods of my program.
>
>A clear insight on this function will be of great help.
>
>thanks in advance...
Mike,
It's guaranteed to be unique as long as produced only from a single machine and provided system clock doesn't get backwards (in 100 years lifecyle).
It uses a schema based on system clock and you can't duplicate it on a single machine even if you call it with the fastest routine you can think of.
On a multiuser system it's duplicable. You might however add byte(s) to differentiate the value generated between stations.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform