1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
type
TMonObjet = class
private
FFlags : Cardinal;
function Get_agcb: Boolean;
procedure Set_agcb(Value: Boolean);
...
property _agcb : Boolean read Get_agcb write Set_agcb;
property _alb: Boolean read Get_alb write Set_alb;
property _gap : Cardinal read Get_gap write Set_gap;
end;
function TMonObjet.Get_agcb: Boolean;
begin
Result := (FFlags and 1) > 0;
end;
procedure Set_agcb(Value: Boolean);
begin
if Value then
FFlags := FFlags or 1
else
FFlags := FFlags and (not 1);
end; |