08-12-2008 10:56 AM
08-13-2008 12:38 PM
Hello rfolea,
Thank you for posting on the NI Discussion Forums. Unfortunately, there are no format codes which specify exactly what you are trying to do. When you read in a string of “1010” and format it to hexadecimal (using Fmt( ) with “%x<%s” as the format code), it literally converts “1010” to 0x1010, instead of 0xA like you are trying to do. So to say it plainly, there is no function that will take care of this conversion for you. As you proposed above, you must parse the string and convert every grouping of four characters into its corresponding hexadecimal representation.
08-13-2008 02:07 PM
Thanks Chris,
I went ahead and did the brute force method, works fine. Was just wondering if something already existed ...
Thankyou for taking the time!