If Statement Help

edited 11:50AM 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 11:50AM
    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

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.