Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal to hexadecimal
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00402852
Message ID:
00402896
Views:
9
>ARRGGHHH!!!! Think out of the box alex, think out of the stupid box!!!!!
>
>Thanks!
>
>Alex

Whoa...that's not what BINTOC() and CTOBIN() do exactly. They convert a numeric value to a character string not an Intel understandable byte, word, or dword (binary). First, the order of the bytes is reversed. They're stored in memory from least to most significant byte order. BINTOC() and CTOBIN() work in most to least significant order. Second, the sign bit is reversed. In memory if the most significant bit is set the value may be negative (with a signed integer). In the string, it is not.

>>BinToC() And CToBin()
>>
>>>That's a great little gem Nigel,
>>>
>>>What about Dec to binary and viceversa?
>>>
>>>Thanks!
>>>
>>>Alex
>>>
>>>
>>>>Transform(). Try Transform(32, "@0") - @ZERO, not letter O.
>>>>
>>>>>Does VFP have function to convert Decimals values to Hexadecimals values?
George

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

Click here to load this message in the networking platform