problem with checkbox in fastreport 4.9.35 in delphi7

edited 4:05AM in FreeReport
hi
i want to report from my data.
there is a field that is detail is 11 or 12 .
i want to show that field data with check box in fast but check box in fast just support 0 or 1 .
so in code i wrote this code :
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);  
  var i:integer;
            
begin                          
         if <frxDBDatasetInsurPast."TP_FType"> ='11' then                                                         
            CheckBox1.Checked:=true;    
      if <frxDBDatasetInsurPast."TP_FType"> = '12' then                  
            CheckBox1.Checked:=false;                              
end;
but it does not work .

Leave a Comment