Link to home
Start Free TrialLog in
Avatar of willcode4coffee
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:

546869732069732061207465737421

and I want to convert it back to the original string:

This is a test!




Thanks,

M@
Avatar of eekj
eekj

Dim OutStr As String = Hex(Int32.Parse("546869732069732061207465737421"))
whoops i didnt read your question properly... duh
Avatar of willcode4coffee

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@
ASKER CERTIFIED SOLUTION
Avatar of eekj
eekj

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial