All, I'm working on a program that requires the use of bit masks to set or clear bits of a variable. I know that's an easy task in assembly but I'd rather stick to doing this in basic. The solution I've come up with is large and slow. Does anyone have a good way of doing this? Frank