If Statement Help

edited 8:28PM in FreeReport
Hi,

Sorry if this is in wrong place. I am trying to edit a .frf file and would like the last if not statement below to say 'heading' OR 'space'. Any ideas? Have tried multiple variations without success.

Thanks!
  if [POS('HEADING',[DF.Items."CODE"])] then MemoLRV.visible:=false;
           if [POS('SPACE',[DF.Items."CODE"])] then MemoLRV.visible:=false;
           if [POS('HEADING',[DF.Items."CODE"])] then MemonameV.font.Color:=clmaroon;
           if not [POS('HEADING',[DF.Items."CODE"])] then MemonameV.font.Color:=clblack;

           if not [POS('HEADING',[DF.Items."CODE"])] then MemoLRV.visible:=true;

Comments

  • edited 8:28PM
    Also the following doesn't work - I want text to be bold if the code is SPACE

    Thanks
          if [POS('SPACE',[DF.Items."CODE"])] then MemonameV.Font.Bold:=True;
                   if not [POS('SPACE',[DF.Items."CODE"])] then MemonameV.Font.Bold:=False;
    

Leave a Comment