Hi,
I keep getting the error Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) when i try to make a guid.
string entryNum = Convert.toString(entryNo);
Guid key = new Guid(entryNum);
Hi,
I keep getting the error Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) when i try to make a guid.
string entryNum = Convert.toString(entryNo);
Guid key = new Guid(entryNum);
You have pass a string which contains - dddddddddddddddddddddddddddddddd -or- Groups of 8, 4, 4, 4, and 12 digits with hyphens between the groups.
Take a look at - http://msdn.microsoft.com/en-us/library/96ff78dc%28v=VS.90%29.aspx
thanks i understand that now but is there a way to covert a string to a guid? i.e the string name = ben i would like to make a guid representing that.
That's not the purpose of Guid, I think.
Guid.NewGuid() creates a unique identifier.
Thanks that worked didn't even know I could do that.
Thanks Again,
Jordan
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.