Forum: Sonstige Fragen zu Delphi
Delphi
by himitsu,
11. Nov 2003
@negaH,
hab ich doch :gruebel:
1. Bit = Bit 0
2. Bit = Bit 1
...
Forum: Sonstige Fragen zu Delphi
Delphi
by himitsu,
10. Nov 2003
Chewie's stimmt in etwa mit meinem überein:
aus Sakura's Tut:
(1 shl 0) = $01 {1. Bit}
(1 shl 1) = $02 {2. Bit}
(1 shl 2) = $04 {3. Bit}
...
(1 shl 4) = $20 {5. Bit}
...
Forum: Sonstige Fragen zu Delphi
Delphi
by himitsu,
10. Nov 2003
Var Bit: Boolean;
Bit0 := (irrgendwas and $01) <> 0; {1. Bit / niedrigstes Bit}
Bit1 := (irrgendwas and $02) <> 0; {2. Bit}
Bit2 := (irrgendwas and $04) <> 0; {3. Bit}
Bit3 := (irrgendwas and $08) <> 0; {4. Bit}
Bit4 := (irrgendwas and $10) <> 0; {5. Bit}
Bit15 := (irrgendwas and $80) <> 0; {16. Bit}
Bit30 := (irrgendwas and $4000) <> 0; {31. Bit}
Bit31 := (irrgendwas and $4000) <> 0;...