Add a script variable

It is best practice to use Project Builder to add and delete variables, as the script has to be changed accordingly. To change the value of a variable you can either do so within Project Builder or use a text editor to edit the external script variables XML file.

Note If you edit the XML file outside of the Project Builder, you need to ensure that it is saved in UTF-8 format. If you use Notepad and save it as ANSI, it can corrupt the XML file.
  1. On the Ribbon Project tab, in the Configuration group, select Script Variables Script Variables icon.

    The Script Variables window is displayed.

  2. Click Add Add icon.

    An editable variable is added to the table where the default name is Variable <n>, where <n> is a unique number. This ensures that no two variables have the same name.

  3. Type a Name for the new script variable.
  4. Click in the Value column for the new field and type a value for the variable.
    Important The script variable is a string type, so the variable is saved as a string.
  5. Click OK to save your changes and close the Script Variables window.
  6. Save the changes to your project.