Hey GT!
Also, TRANSFORM will convert....
?TRANSFORM(0xA)
Returns 10.
>>Does anyone know if VFP7 have the ability to convert decimal numbers or hex numbers to binary? I want to convert my integer field so I can use the BITTEST() to determine the value. I have some pretty good size integer numbers and I don't want to have to convert them manually. I used Calculator to convert them, but I have to do it from VFP code.
>>
>>Thanks,
>
>Dale
>
>There's no conversion required. For example, VFP sees 0xA as 10, and the BITTEST() function will properly evaluate it. Or, if the value is 3.1, it will properly evaluate that too. If the hex numbers are stored in strings then EVALUATE() will take care of those.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05