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);

Recommended Answers

All 4 Replies

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.