Variables tab (Page)

The Variables tab in the Properties dialog box for a page allows you to view all Pagevariables for the current page – you can also add new Page variables or edit and remove existing Page variables.

As well as Page variables, you can also have System and Publication variables – these are shown in the Variables tab in the Publication Properties dialog.

Variables declared in an OpusScript program are not listed in either the Page Properties or PublicationProperties dialogs.

To edit the Variables tab settings:

  1. The Variables list contains all of the Page variables created for the current page. Page variables can only be used on this page – they are not recognised on other pages in your publication.

Note:
You can use the same name for Page variables on different pages – this is useful if you create a page that is going to be used several times in your publication to perform a similar task (e.g. a Multiple Choice, multiple correct question page). Each page will use the same named variables to store various bits of information but the values for each Page variable can be different on different pages (see Persistent option in the New Variable dialog for more information.

  1. To edit the initial value of a Page variable, select the Page variable in the Name column of the Variable list and either double-click on the variable name or click the Edit button to open the New Variable dialog. Then make your changes and click the OK button in the dialog to return to the Variables tab.

  2. To create a new Page variable, click on the Add button to open the New Variable dialog. Enter the Page variable details in the dialog and click the OK button to return to the Variables tab – see New Variable dialog for more information.

  3. To delete a Page variable, click on the Remove button.

Note:
The Page variable will be deleted instantly, no warning message will be given prior to deletion.

  1. To import variables from a saved list, click on the Import button. A standard File Open dialog will appear and allow you to select an Opus Variable List file (.ovlist)

  2. To export one or more variables to a file, select the variables you want to export and click on the Export button. A standard Save As dialog will prompt you for a filename so save the selected variables to.

Note:
Multiple variables can be selected by using Shift + Left Click to select a range, and Ctrl + Left Click to select multiple individual variables.

  1. Click on the Apply button to save your changes.

Related Topics:

Creating New Variables

Creating and Editing Properties