07-22-2014 12:41 PM
Hi all,
This question has probably been posed before, but I cannot seem to find a situation that quite matches the issue that I am experiencing. I have a numeric array that I flatten to a data string, reverse order, take the first two elements, reverse the order again, and feed the characters into a for loop. I want the string to be in hexadecimal, thus having FE0C (in hex) going through the for loop, but when I highlight the execution I see that normal display characters are going through instead. When I display my string, I have already right clicked to show the hex display which is correct. How do I convert the normal string to a hex string?
Thanks,
J
Solved! Go to Solution.
07-22-2014 12:43 PM
You do not need to convert. All you are commenting on is how the data is displayed. THE DATA IS STILL THE SAME.
07-22-2014 12:54 PM
Yes I do realize that. However; if you look at the attachment, the substring in the for loop is in normal display form and I wish to convert that to number. I cannot use the Hex to Number function as I have in the attachment. How would one change yoe into number?
07-22-2014 12:58 PM
You could use Type Cast to change it to a U16 (since it is supposed to be 2 bytes) or Unflatten From String.
07-22-2014 01:15 PM
Fantastic! It worked. Thank you so much!