How about this: if bitand(filecode,userscode) > 0 then somethingmatches
if bitand(filecode,userscode) = userscode then everythingmatches [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]