willcode4coffee
asked on
Hex to String
I am trying to convert a Hex string to a character string. The value is being converted to Hexidecimal by the Hex() function but I have been unable to find a similar function to convert it back from Hexidecimal to String. Could anyone shed any light?
The code used to "encode" it is:
For Each sChar In Value
sRet += Hex(Asc(sChar)).ToString
Next
Example:
I have this string:
54686973206973206120746573 7421
and I want to convert it back to the original string:
This is a test!
Thanks,
M@
The code used to "encode" it is:
For Each sChar In Value
sRet += Hex(Asc(sChar)).ToString
Next
Example:
I have this string:
54686973206973206120746573
and I want to convert it back to the original string:
This is a test!
Thanks,
M@
Dim OutStr As String = Hex(Int32.Parse("546869732 0697320612 0746573742 1"))
whoops i didnt read your question properly... duh
ASKER
No problem. I can find lots of examples of how to get it to hex, but none on how to get it back.
M@
M@
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.