home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!slip02.telnet1.QueensU.CA!dmurdoch
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Subject: Re: reading Bit mapped fields
- Message-ID: <dmurdoch.48.0@mast.queensu.ca>
- Lines: 10
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- References: <1992Aug31.094135.245@lincoln.ac.nz> <1992Aug31.094457.9196@kth.se>
- Date: Mon, 31 Aug 1992 12:20:24 GMT
-
- In article <1992Aug31.094457.9196@kth.se> kjell@elixir.e.kth.se (Kjell Rilbe) writes:
- >BEGIN
- > FOR I:=0 TO 15 DO
- > BitIsSet[I]:=(CheckBoxResult AND (2 SHL I) > 0);
- >END.
-
- That should be "1 SHL I" for the usual bit numbering. Yours misses the
- least significant bit, and numbers the others from 0 to 14.
-
- Duncan Murdoch
-