Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binary to Integer
Message
From
29/12/2001 08:30:39
 
 
To
29/12/2001 07:28:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00599084
Message ID:
00599089
Views:
15
Michael,

see if this helps

xx = substr(???,2)
uInt = asc(xx) + 256*asc(substr(xx,2,1)) && bytes are reversed


>Hi, could someone please assist.
>
>I am trying to decode a binary file. There are unsigned 2 byte integers that represent a CRC check digit and length of data packet.
>
>My question is: How do convert an unsigned 2 byte int, presented in binary format into a real integer value.
>
>Thank you in advance.
>
>Kind regards,
>Mike Mayo
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform