03-31-2006 01:44 PM
03-31-2006 01:52 PM
DGU wrote:
string one (in normal display) show "20"
after convertion to string two (which is in hex display mode) still show "20"
A normal string display shows a string as normal characters. Hex display shows the ASCII code of the characters. They are not and never will be showing the same thing. What you are asking does not make sense. The ASCII code for 2 in hex is 32, for 0 it is 30. So your hex display will show 3230. A hex display of 20 is the space character. Maybe you could explain your problem a little better, or post your code.
03-31-2006 02:13 PM
03-31-2006 02:50 PM - edited 03-31-2006 02:50 PM

Message Edited by tbob on 03-31-200601:50 PM
03-31-2006 02:59 PM - edited 03-31-2006 02:59 PM
Sorry, should have converted numeric to U8 (byte). Look at picture below. I converted the last string to a byte array to insure that the value is hex 10 (dec 16).

Message Edited by tbob on 03-31-200602:00 PM
03-31-2006 03:24 PM