Remove curly braces from a GUID - [RESOLVED]
I need a function that will strip the opening and closing curly braces from a GUID...I have tried using the Replace function (only good for replacing one character) and the Instr function (could get this to work)
Any Ideas???
Code:
strGUID = "{89eh-84h8-920d-93hd-94jd}"
I need it to remove the { and } and return just the
89eh-84h8-920d-93hd-94jd value
Re: Remove curly braces from a GUID
Quote:
Originally posted by Memnoch1207
I have tried using the Replace function (only good for replacing one character)
For what it's worth:
VB Code:
MsgBox Replace(Replace("{89eh-84h8-920d-93hd-94jd}", "{", ""), "}", "")
Also, If you use Mid() while working with String Data Types, then use the $ like: strBuff = Mid$()
Bruce.