Jump to content
Sign in to follow this  

BitAnd($BS_RIGHT,$BS_CENTER)<>0 ???

Recommended Posts

What the heck.

I'm working on a generic base class called FlagSet, whose derived class will have a bunch of boolean properties such as "Left", and will provide a BitOr value for its state, or an AsString() which will return a comma separated list of all its properties that are True: Left,Bottom,etc.

Global $bs=NewButtonStyle('Left')
Msg($bs.Value); would show BitOr($BS_BOTTOM,$BS_LEFT)
Msg($bs.AsString()); should show "Left,Bottom" but shows "Left,Center,Bottom" because BitAnd($BS_RIGHT,$BS_CENTER)<>0


;Is it me or is this perverse?
;should it not be...

Damn you Microsoft!

**shakes fist at a dark sky**


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...