Take the 2-minute tour ×

I need for function to generate a UNIQUE string, like:

DIM uniStr as string = generateUniStr()

is there any function already do this ?

share|improve this question
add comment

2 Answers

up vote 11 down vote accepted

You can use

Dim uniStr = Guid.NewGuid().ToString()
share|improve this answer
Remembering that GUIDs are not guaranteed to be unique, but for all practical purposes are. –  RichardOD Jun 6 '09 at 20:10
yes, that's is ! thanks! –  turki2009 Jun 6 '09 at 22:56
add comment

You can gen up a GUID and stringify it.

You might want to give more details on what you're really looking for, because it's likely there's a better solution.

share|improve this answer
thank you . –  turki2009 Jun 7 '09 at 13:09
add comment

Your Answer


