>George, if the 'flag' has already been removed, won't BitXor(nFlags,8) just put it back in and return 10 again for nFlags = 2?
>
Alan,
Yes, if it's already been cleared it will. If you need to check if it is set then either BITAND(nFlags, 8) or BITTEST(nFlags, 3).
George
Ubi caritas et amor, deus ibi est