General information
Category:
Coding, syntax & commands
I'll work with that; I can never remember if Sys(3) or Sys(2015) was "truly unique". I was thinking that both might be based on DateTime but ah, nevermind. I'll try 2015 :)
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only