Jun 8, 2005 #1 sergelaurent Technical User Joined May 30, 2005 Messages 52 Location 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
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
Jun 8, 2005 #2 Bong Programmer Joined Dec 22, 1999 Messages 2,063 Location US Like: format %c 90 gives > Z? _________________ Bob Rashkin rrashkin@csc.com Upvote 0 Downvote
Jun 8, 2005 #3 Bong Programmer Joined Dec 22, 1999 Messages 2,063 Location US 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 Upvote 0 Downvote
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
Jun 9, 2005 Thread starter #4 sergelaurent Technical User Joined May 30, 2005 Messages 52 Location FR Thanks for the tip lolo Upvote 0 Downvote