Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!think.com!rpi!batcomputer!cornell!vax5.cit.cornell.edu!b39y From: b39y@vax5.cit.cornell.edu Newsgroups: comp.databases Subject: Clipper and bitwise operators Message-ID: <1991Jun13.142852.5436@vax5.cit.cornell.edu> Date: 13 Jun 91 18:28:52 GMT Distribution: comp Organization: CIT, Cornell University Lines: 19 I've got a question for Clipper users. I'm running in Clipper 5.01, and want to use a bitmask-style integer for checking access to parts of my code. That is, I'd like to assign (at startup) values like SCHEDULE && ACCOUNT && BIOGRAPHICAL (where the constants have been #defined as 1, 2, and 4 respectively) to a numeric nAccess. Then, when entering my account module, I'd like to check like this: if nAccess .and. ACCOUNT accounting code here else ERROR: You have insufficient priviledges for this operation endif However, Clipper has no bitwise operators that I can find. Am I missing them, or do they truly not exist? If they don't exist, has anyone got suggestions for alternative implementations? Thanks Dave Rodger Applications Programmer, Cornell University