Mensaje
General information
Foro:
Visual FoxPro
Category:
Programación, sintáxis y comandos
Miscellaneous
ID de la conversación:
01157093
ID del mensaje:
01157466
Views:
21
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
Previous
Next
Responder
Mapa
Ver