WelshyWizard
IS-IT--Management
Hey all,
I'm using the following code to create a uniquie ident on a windows app:
This inserts my unique ident (based upon) current date time in textbox2 upon the loading of the form. There are only 4 users on this app and the chances of them using at exactly the same time are pretty remote. With this in mind, would people agree that this is an acceptable method of creating a unique identifier for both primary key purposes and also for the user to jot down the simple id for future reference.
The reason I don't use the VB.NET GUID is that it is soooooo long!
Cheers
Today is the tomorrow you worried about yesterday - and all is well.....
I'm using the following code to create a uniquie ident on a windows app:
Code:
TextBox2.Text = DateTime.Now.ToString().GetHashCode().ToString("x")
The reason I don't use the VB.NET GUID is that it is soooooo long!
Cheers
Today is the tomorrow you worried about yesterday - and all is well.....