Welcome! Log In Create A New Profile

Advanced

WD12: How to convert a string to Hex readable..

Posted by Gianni Spano 
Gianni Spano
WD12: How to convert a string to Hex readable..
June 10, 2009 10:50AM
Hello to all

This could be a stupid question, but i didn't find nothing on the help.

In pratice i have a string that contains this value: "<7>Ö"
that is representing a readable value as the string shows and it is corresponding
to "07 D6" in Hex format.

What i would like to do is to obtain, after a little conversion, a readable string
with the value "07 D6"...

Is there some function to obtain this result??

Gianni
Michel Fages
Re: WD12: How to convert a string to Hex readable..
June 10, 2009 11:11AM
Hello Gianni,

Have a look at the NumToString() function, using "%X" for formatting.
For each char of your string you could call NumToString(asc(MyString[[index]]), "%X").

Regards,

Michel Fages
Gianni Spano
Re: WD12: How to convert a string to Hex readable..
June 10, 2009 11:26AM
Thanks Michel

It works...
:cheers:

Gianni

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: