Setting and Defining Constants

Constants are similar to variables, but unlike variables, constants maintain the same value from task to task.  They cannot be modified from or within a running task.  Constants are local to each machine and are stored in the local machine settings of the registry in the AutoMate 7 key. Constants are defined through the Options dialog box of the Task Administrator. For further information, see About Constants.

To add a constant:

  1. From the System menu in the Task Administrator window, select Options.

  2. Click the Constants tab. The dialog box shown below appears:

  1. Click the Add button. A dialog titled AutoMate Constants appears as shown below:

  1. In the AutoMate Constants dialog box, enter a name and value for the constant. A constant name must begin with a letter, and contain only letters and numbers. You can also enter a comment for reference (the comment is optional and does not affect how the constant behaves).

  2. Click OK.

To remove an existing constant:

NOTE: Before removing a constant, be sure you have removed any references to it in your tasks.

  1. Select the constant from the User defined constants list.

  2. Click Remove.

  3. Click OK.

To modify an existing constant:

  1. Select the constant from the User defined constants list.

  2. Click Modify.

  3. In the AutoMate Constants dialog box, modify the name, value and comment relating to the constant.

  4. To disable a constant, clear the Enable check box.

  5. Click OK.

See Also

Constants

Configuring AutoMate