>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