problem with checkbox in fastreport 4.9.35 in delphi7

edited 4:04AM in FastReport .NET
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 .

Comments

  • edited July 2013
    Did you check for open datasource and valid data?

    By the way - you are in the wrong forum. This here is for FR .Net

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.