User Manual

Table Of Contents
Macro Pages
Editing and Assembling Elements
396
Adding UI Variables
Before you can use variables, you must add them to your macro page.
PROCEDURE
1. In the GUI Tree, either select the macro page or the template, depending on where you
want to use the variable.
2. Right-click and select Create> Variables.
This creates the folder in which all variables are saved.
NOTE
If you use a large number of variables, it might be necessary to organize them by
creating further subfolders. To do so, right click the Variables folder and select
Create> Variables.
3. Right-click the Variables folder and select the type of variable that you want to add
from the Create submenu.
AFTER COMPLETING THIS TASK
Now you can name the variable and make settings for it in the Properties section.
RELATED LINKS
UI Variable Types on page 395
Switching Between Two Pages Using a Single Switch
You can use variables to switch between the pages of your macro page.
PREREQUISITE
You have created a Stack element that contains two groups, one for each page.
You have added a Variables folder to your macro page.
PROCEDURE
1. In the GUI Tree, right-click the Variables folder and select Create> Integer.
2. In the Properties section, name it pages.
3. Set Minimum to 0 and Maximum to 1.
4. Add an on/off switch to the macro page.
5. Set the Value property of the switch and the Value property of the stack to @pages.
This will connect the two properties.
RESULT
You can now switch between the two pages using the on/off switch.