09-24-2010 04:21 PM
I have a question on fromat into string. I have some problems when I use %02x to format a decimal value. The decimal value is 9, but the hex in the string is 3039? Why is that? See atttached.
09-24-2010 04:31 PM
09-24-2010 04:32 PM
But I would like to keep on hex display on though. Is there another way?
09-24-2010 04:44 PM
09-24-2010 05:07 PM
Formating a string to hex, shows the Hex representation of number in ASCII. The Hex value of the character '0' is 30 and '9' is 39. You can also type cast the number to a string, and concat that onto the end the reset cmd string. But it'll probably be less confusioning work with a byte array as Darin K. suggested.