Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BitAnd() limitation?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00931430
Message ID:
00932738
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform