home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / pascal / 5124 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!mcsun!sunic!kth.se!kjell
  3. From: kjell@elixir.e.kth.se (Kjell Rilbe)
  4. Subject: Re: reading Bit mapped fields
  5. Message-ID: <1992Aug31.151145.13188@kth.se>
  6. Sender: usenet@kth.se (Usenet)
  7. Nntp-Posting-Host: elixir.e.kth.se
  8. Organization: Dept. of EE, Royal Institute of Technology, Stockholm, Sweden
  9. References: <1992Aug31.094135.245@lincoln.ac.nz> <1992Aug31.094457.9196@kth.se> <dmurdoch.48.0@mast.queensu.ca>
  10. Date: Mon, 31 Aug 1992 15:11:45 GMT
  11. Lines: 20
  12.  
  13. In article <dmurdoch.48.0@mast.queensu.ca> dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
  14. >In article <1992Aug31.094457.9196@kth.se> kjell@elixir.e.kth.se (Kjell Rilbe) writes:
  15. >>BEGIN
  16. >>  FOR I:=0 TO 15 DO
  17. >>    BitIsSet[I]:=(CheckBoxResult AND (2 SHL I) > 0);
  18. >>END.
  19. >
  20. >That should be "1 SHL I" for the usual bit numbering.  Yours misses the
  21. >least significant bit, and numbers the others from 0 to 14.
  22. >
  23. >Duncan Murdoch
  24.  
  25. Yes, of course, that's what I meant. Must have been thinking 2^I...
  26.  
  27. /Kjell 
  28. -- 
  29. -----------------------------------------------------------------------------
  30. ! Kjell Rilbe           ! Love is not about getting everything on the list, !
  31. ! kjell@elixir.e.kth.se ! it's about accepting the things that aren't on    !
  32. !                       ! the list!             - Stewart Markowitz, LA Law !
  33.