Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting data from binary to numeric
Message
 
 
To
31/01/2003 08:13:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00747607
Message ID:
00747700
Views:
14
Oscar,

Download Heap allocation class File #9482. It has ShortToNum and LongToNum functions for such conversion.

>Hi,
>
>I am decoding a data file create with C for DOS, wich has binary data fields
>of 1, 2, 4 and 8 bytes of length, some of the signed and others unsigned
>(integer, double, floating point,etc)
>
>as far as I know VFP has no fucntions to convert the content of a text
>string from binary to numeric format, so I have develped an small program to
>convert them using the command BITTEST(), however, I am in trouble with
>signed fields because I don't remember the format, something about
>complements;
>
>does anybody knows where to download a routine to do it or a socument
>explaining the format of suck kind data fields?
>
>thanks in advance
>
>Oscar
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform