Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!vax5.cit.cornell.edu!b39y From: b39y@vax5.cit.cornell.edu Newsgroups: comp.databases Subject: Re: Clipper and bitwise operators Message-ID: <1991Jun14.091426.5479@vax5.cit.cornell.edu> Date: 14 Jun 91 09:14:26 EDT References: <1991Jun13.142852.5436@vax5.cit.cornell.edu> <31346@hydra.gatech.EDU> Distribution: comp Organization: CIT, Cornell University Lines: 27 In article <31346@hydra.gatech.EDU>, jgb@prism.gatech.EDU (James G. Baker) writes: > In article <1991Jun13.142852.5436@vax5.cit.cornell.edu> b39y@vax5.cit.cornell.edu writes: >>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. > > I assume they did not want bit-wise operators since having a binary byte > (usually less than 32) in a .DBF can mess things up (like a stray EOF, etc). > > You could interface some C functions to do it, but (if it were me) I would > just use a character mask instead of a bit-mask. It might take eight > bytes instead of 1, but it sure makes debugging easier and memory is > cheap. > > Good luck. > > > -J Baker James - Thanks; I probably will take the character route for this situation, or some similar thing. I was also told that some third-party libraries have these operations available, so if I *need* them in the future, it's nice to know where to get them. Dave