468,113 Members | 2,114 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,113 developers. It's quick & easy.

Converting hex values to string

I have a byte array loaded with hex bytes read from a device on a com port. I need to convert the bytes into a string, but without doing any conversion to decimal, integer. etc. In other words, when I have a hex value of &H37, I need to convert it to a string of "37". Sounds simple, but has me puzzled so far.
1 Week Ago #1
1 2099
162 Expert 128KB
Hex will do that:

Expand|Select|Wrap|Line Numbers
  1. HexText = Hex(&H37)
  3. ? HexText
  4. 37
1 Week Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Jus! | last post: by
10 posts views Thread by Wouter vanEck | last post: by
1 post views Thread by Kevin S Gallagher | last post: by
3 posts views Thread by Jef Driesen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.