Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed for ascii!!!!

Status
Not open for further replies.

sergelaurent

Technical User
May 30, 2005
52
FR
I have got an hexadecimal code and I wanted my scrip to replace that hexadecimal code by its corresponding ascii character. How can I do this
 
Like:

format %c 90
gives > Z?


_________________
Bob Rashkin
rrashkin@csc.com
 
Sorry. You asked about HEX numbers. In my example above, 90 (decimal) is 5A (HEX). So you would use:
format %c 0x5a to give Z.

If your hex string is a variable, say, hVal, you would use:
format %c 0x$hVal

_________________
Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top