Cicode Programming Reference > Using Cicode Functions > Using String Arguments

Using String Arguments

Functions can require several arguments or, as in the following example, a single argument:


PageDisplay("Boiler 1");

This function displays the graphics page called "Boiler 1". Be aware that when you pass a string to a function, you need to always enclose the string in double quotes.

You can use the PageDisplay() function to display any graphics page in your system - in each case, only the argument changes. For example, the following command displays the graphics page "Boiler 2":


PageDisplay("Boiler 2");

You can use the Report() function to run a report (for example, the "Shift" report) when the command executes:



The following example uses the Prompt() function to display the message "Press F1 for Help" on the screen when the command executes:


Prompt("Press F1 for Help");