Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BitTest() ?
Message
De
19/03/2002 16:50:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00634483
Message ID:
00634680
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform