Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Binary String to Byte Array

10 views
Skip to first unread message

Chris_G.

unread,
Aug 13, 2008, 1:40:14 PM8/13/08
to
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.
0 new messages