We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Converting HEX values

rus
rus asked
on
Medium Priority
530 Views
Last Modified: 2012-08-14
I am going to extract HEX values from a file that is dumped from EPROM's.
Most of this values are to be extracted as Int or Long.
However, some of this values are to be converted to ASCII characters, and that's stopping me at the moment.
Is there any easy solution ?
Comment
Watch Question

deightonprog

Commented:
Do you mean the Hex values will be in the form of Hex number strings e.g. "1AB2" etc

If so answer to follow
prog
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
rus

Author

Commented:
Yes, The Hex values is like "1AB2" etc.
In VB there is a HEX-function but it returns a string with the hexadecimal value of a number. I would like it the other way,
Hexadecimal to number. In that way I should be able to extract the ascii characters by using the Chr-function.
Don't you think that...
deightonprog

Commented:
if you want a string instead of a long you could change the function to AS STRING then return cStr(long_integer) as the return value.  
rus

Author

Commented:
I have tested it an it's working fine, Thanks!

Best regards
Rudolf Stoum
Trondheim
Norway
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.