Try...except issue

Hi.

I need to check eries of non-declared variables from script. This is a dobule-pass report, where variables are set in first pass, and read in final pass. In the final pass we don't know which variables are set in the first.

I try to put the reading of variables inside of a try-except like this (the variable <test> is not declared):
try
    showmessage(get('test'));
  except
    showmessage('No value');
  end;

The report gives a 'No value' message as supposed to, but there is also a warning saying 'Unknown variable or datafield: test'.

Is there any way to avoid this message?

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.