Create Variable Action—Setting Properties

The Create Variable action is used to create a variable that can then be used in other task steps to store changeable values.

To set Create Variable properties

  1. From the Task Builder Available Actions pane, open the Variables folder and double-click the Create Variable action or drag it into the Steps pane.

  2. In the Variable Name box, enter a name for the variable. Be sure the name is unique and does not conflict with any BASIC scripting keywords such as date, day, week, etc. One safe way to do this is to always include identifying characters, such as VAR, in variable names (for example, DateVar).

  3. If you want to give the variable an initial value, enter it in the Initial Value box. You can enter a literal value or click the Insert Expression/Variable button and use the Expression Builder to enter an expression.

  4. If you want to include a description for the variable, enter it in the Description box. The description will be displayed in the Variables tab of the Task Builder debug window.

  5. To specify additional properties, click the Advanced tab and enter the properties as follows:

  6. To set the Description tab properties, refer to Description Tab Options.

  7. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  8. When finished, click OK to save settings and close the properties dialog window.

See Also

About Actions

Adding Task Steps

About Variables

Create Variable Action