>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.
George
Ubi caritas et amor, deus ibi est