How to create a unique ID?

Joined
Dec 10, 2007
Messages
18
Location
Florida
Programming Experience
Beginner
Hello all,
Lets say a user enters John Smith into a textbox and then behind the scenes I want to create a nameIDString as JS (the initials), how can I do this in code?
And afterthat though, how would I create an ID for a new name the user enters that has the same initials? Example = Jane Sims
I could not use the "JS" ID for that person, I would have to create maybe J and then another letter from the name until it becomes unique.

Any help would be greatly appreciated!!! Thanks!
 
Back
Top