Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enums and parameters question
Message
 
 
To
01/11/2002 09:36:52
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00717746
Message ID:
00717799
Views:
18
This message has been marked as the solution to the initial question of the thread.
Hi Gary,
DvFilterDefault = DvFilterError + DvFilterCorrect + DvFilterConclusion + DvFilterAll
* Or 
DvFilterDefault = BITOR(DvFilterError, DvFilterCorrect, DvFilterConclusion, DvFilterAll)
>
>Hi Sergey (and the guys!)
>
>I accept what you have advised regarding passing the arguments to the method.
>
>How do you express the following as a constant :-
>
>
>DvFilterDefault = DvFilterError | DvFilterCorrect | DvFilterConclusion | DvFilterAll
>
>
>I haven't used the bitwise functions before. What does BITOR() do (let alone BITXOR). Can anyone recommend a tutorial on these functions? (back to school <s>)
>
>Thank you so much for the quick assistance. I was a bit stunned to see three responses. I thought I was the first one to come across this problem !
>
>Best
>
>>Hi Garry
>>
>>It would be
... (DvFilterDefault + DvFilterUnViewed) ...
>>* OR
>>... (BITOR(DvFilterDefault + DvFilterUnViewed)) ...
>>
The first form will work if constant don't intersect (represent different bits). The second should work always. Keep in mind that if there are constatnts with high bit set (0x80000000) you may have to cast it to integer using
BITXOR((BITOR(DvFilterDefault + DvFilterUnViewed)),0)
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform