GUIDs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The NewGUID function returns a 36 character string

Is this correct? Are not GUIDs 32 characters

CODE

Imports System.Securit
...
Private guiGUID As New Gui
...
rowTable.TableKey = guiGUID.NewGuid().ToStrin

Thanks
Thomas
 
36 characters including the separating hyphens. If you dont want the
hyphens, use the "N" specifier as the format.

rowTable.TableKey = guiGUID.NewGuid().ToString("N")

HTH
-Rich
 
They are 32 characters not counting the 4 hyphens included for
formatting....

(8 characters)-(4 characters)-(4 characters)-(4 characters)-(12 characters)
 
* "=?Utf-8?B?dGhvbWFzYXRpZW1AaG90bWFpbC5jb20=?= said:
The NewGUID function returns a 36 character string.

Is this correct? Are not GUIDs 32 characters?

Did you have a look at the string?!
 
Back
Top