Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need read random microsoft basic files
Message
From
26/06/2006 04:20:48
 
 
To
25/06/2006 03:07:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01130452
Message ID:
01131627
Views:
13
No success.

In RANDOM basic file there is a value of CHR(0xD4)+CHR(0x08)+CHR(0x03)+CHR(0x85) for a price, that it sees in screen as 16.37931061

CTOBIN() can't help me.
Thanks.

>>I need read ramdom Microsoft basic files, with binary numeric fields.
>>I need some VFP code routine that emulate the CVS(), CVD() basic functions.
>>
>>Thanks.
>
>
>On VFP9:
>
>*CVD()
>* correct
>CTOBIN(8bytes,"BRS")
>* uses
>CTOBIN(8bytes,"BS")
>
>
>I hope this bug will be fixed on SP2.
>
>
>* CVS and CVD
>CTOBIN(4or8bytes,"NRS")
>
>
>Remember, VFP doesn't support 32bit floating point (single),
>then the conversion to double can add a rounding error.
>
>example
>
>* double
>? CTOBIN(0H+BINTOC(0.1E0,"BRS"),"NRS")
>
>* single
>? CTOBIN(0H+BINTOC(0.1E0,"fRS"),"NRS")
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform