REPORTER 22.1

Inserting a Variable

Inserting a variable

Certain inputs for such things as filenames, text, and program/script arguments can use variables rather than a straight text string. You can insert a variable at the current cursor position by right clicking on the text box
From the popup menu select Insert variable .

An Insert variable window from which you can select the variable will then be brought up.

From this window you select the variable you want from the list and click on the OK button to insert the variable and exit this window. The Cancel button will exit this window with out inserting a variable.

Note in this panel you can set a local format setting for the variable. This is a format that is applied to this instance of variable when viewed in presentation model. The available options are:

  • Floating point number - displays a number variable as a floating point number. The number of decimal places can be specified using the precision setting.
  • Scientific number - displays a number variable as a scientific number. The number of decimal places can be specified using the precision setting.
  • General number - this uses the shorter of the floating point or scientific methods above..
  • Integer - displays a number variable as an integer.
  • Uppercase - displays a string type variable in uppercase.
  • Lowercase - displays a string type variable in lowercase.

This local format setting overrides any global format setting for this variable specified on the main variables panel. However, the format set here is only applied to this instance of the variable.

When entered into a text string the variable needs to be enclosed by % signs put at either end of the variable name to distinguish it from the rest of the text string. In this example the variable CURRENT_PAGE has appeared in the text box as %CURRENT_PAGE% .