Convert Hex to char

Hi,

I want to convert the hexadecimal to character.

For instance, if you put in “3B” it would return “;” and when you put in “33” it would return “3”.

Thanks regards,

G.Rajkumar

Don’t forget that what a binary value means depends on the encoding used for interpretation.

If all what you need is ASCII, use num2char():

num2char(hex2int('3B'))

If the problem is more complex, consider using the Encoding class (and methods such as GetString()) via .NET Interop.

Dear Martin,

Just I want to know that this function will run in Ax 2009.

Thanks,

G.Rajkumar

Yes, it will. Try it yourself.

Thanks Martin,

I will try & come back with good news.

Thanks,

G.Rajkumar.

Dear Martin,

Its working fine.

Thanks,

G.Rajkumar