hex to string

N

Net Mongrel

converting string to hex like so:

for x = 1 to len(source)
target = target & hex(ascw(mid(source,x,1)))
next

How to convert it back to a string?

I got as far as:

for x = 1 to len(source) step 2
target = target & chr("&H" & mid(source,x,2))
next

but this fails with the pound sign (£ - £)
 
S

Stan Scott

Can't you just use the escape() and unescape() methods? These convert to
hex and back.

Stan Scott
New York City
 
N

Net Mongrel

Stan said:
Can't you just use the escape() and unescape() methods? These
convert to hex and back.

Thanks Stan, that's javascript right? I did a little digging and played
around with the calls. They don't really do what I had in mind.

I do need to get the hex pairs for each character and then change them back.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top