>
>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.
I do not understand your solution (maybe too early in the morning <s>).
I have no problem storing the value, it's the testing of the bits i got the problem with. i do understand the limitation from 32bit system as you explained it, but there has got to be a solution!
let me define my situation a bit:
I am working on a multi user app. each user can have different responsibilities (there are up to 33 different ones at this time). I got a table with 33 records defining those responsibilities. each record contains a code like 2 (2^1), 4 (2^2), etc... i got 1 table for the users containing 1 double type field containing the number which defines this user's responsibilities, if he is in charge of all items the number would be 17179869182.
at a specific point in time the app needs to find out what items this user is in charge of. so i test each record for the responsibilities against this 'user-number'. that is where i run into trouble when i check for 2^32, ...
Again i understand the limit you discribed, but there must be a way to do this.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement