Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone written code to replace SYS(2015)?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01157093
Message ID:
01157466
Views:
19
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
Reply
Map
View

Click here to load this message in the networking platform