Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINTOC() and CDX size
Message
 
To
11/01/1999 17:13:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00173567
Message ID:
00174900
Views:
43
>>Good to see you.
>
>I haven't forgotten the beers we planned :)

Neither have I and I'm thristy.:-)
>
>>That's not exactly the way BINTOC() works. It first does and exclusive OR on the most significant bit which is the sign. Positive numbers have it set, negative have it cleared. It then inverts the order of the bytes. Normally this is stored low byte to high byte. BINTOC() uses high byte to low byte.
>
>Right - I knew there was some more internal jumble, but couldn't remember which. Well, if this world was based on Motorola processors, we wouldn't have this trouble - it stores high byte first.

And Steven Jobs would be the subject of the US Dept. of Justice suit.:-)

>I think the basic story remains - VFP does use BinToC() internally to build integer keys. Gurus?

Send the top of a new convertible to...and receive your very own Computer Guru certificate.:-)

Seriously, I think the advantage (if I remember correctly) of BINTOC() is faster response times. I think it may have to do with the way strings are compared for being greater or less than as opposed to numeric values. I could be wrong about this.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform