tags:

views:

170

answers:

2

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

DIM uniStr as string = generateUniStr()

is there any function already do this ?

+3  A: 

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.

Michael Burr
thank you .
turki2009
+11  A: 

You can use

Dim uniStr = Guid.NewGuid().ToString()
Jose Basilio
Remembering that GUIDs are not guaranteed to be unique, but for all practical purposes are.
RichardOD
yes, that's is ! thanks!
turki2009