Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BitAnd() limitation?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00931430
Message ID:
00932738
Vues:
18
>hello everybody.
>
>it seems, in Vfp6 Sp5, that the following works:
>
>?bitand(2^30, 2^30) = 2^30 && shows .t.
>but the next one does not
>?bitand(2^31, 2^31) = 2^31 && shows .f.
>
>is this the limitation of BitAnd()?
>
>if so, is there a workaround? currently i need to be able to check for values up to 2^33
>
>thanks for all your help in advance!

Gunnar,

VFP is limited to 32 bits (0-31) with the bitwise operator. This is because of the limitation within the operating system (Windows). If you need to go beyond that boundary, then use either two field to store your vales and deal with that or one character field and deal with that one.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform