Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINTOC()
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
BINTOC()
Miscellaneous
Thread ID:
00500863
Message ID:
00500863
Views:
66
I expected that the result of bintoc(0,1) would be chr(0) - in fact it is chr(128), or 80 hex. Further tests showed that all bintoc() results have 128 added to the most significant byte.
Ex:
bintoc(255) results in chr(128)+chr(255) (hex 80 FF)
bintoc(256) results in chr(129)+chr(0) (hex 81 00)

Why is this?

TIA
Doru
Next
Reply
Map
View

Click here to load this message in the networking platform