Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone written code to replace SYS(2015)?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01157093
Message ID:
01157466
Vues:
20
Randall,

if you are afraid of getting the same sys(2015) for calling it inside the millisecond, simply add a few lines tou your uniqueID() function to skip this chance:
	lcUniqueID = sys(2015)
	do while lcUniqueID == sys(2015)
	endDo

	return lcUniqueID
it won't add a noticiable delay when generating thousands of IDs and it's safer.

>Hi again, Dragan. Good to hear from you again, bro.
>
>>Look at message #1156037 - just use milliseconds instead of seconds. You wouldn't
>>get the exact same result, but an equivalent of a timestamp-as-string. If millisecond
>>resolution isn't good enough, then, well, find something more precise.
>
>Looking...Okay. Looks like something I can translate to PHP.
>
>Thanks a bunch, Dragan.
>
>Randall
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform