This command allows you to set string values, such as button labels.
Syntax
Valid entries for the option_number and
option |
explanation: |
|
description |
0 |
Reset the TEXT |
"" |
|
1 |
Set the label on the Run now button for the TIMER_DELAY screen. |
new label |
Set a new label for this button. |
"" |
Reset the label for this button to "Run now". |
||
2 |
Set the label on the Cancel button for the TIMER_DELAY screen. |
new label |
Set a new label for this button. |
"" |
Reset the label for this button to "Cancel". |
||
3 |
Set the label on the external applications button or hide the button. |
new label |
Set a new label for this button. If the button is hidden, this command will display the button and apply the new label. |
"" |
Hide this button. |
||
Set the label for the Enter button |
new label |
Set a new label for this button. |
|
"" |
Reset the button label to "Enter". |
Return value
This command does not return a value.
Notes
When using TEXT_OPT 3, "new label" to set the label on the external applications button:
In addition to dynamically changing the label on this button, you can also dynamically change the formula that will be executed by clicking this button.
To do so, use Template Wizard Step 6 to set the formula for this button to a simple command like EVAL SVAR 1 or EVAL MYSVAR "ButtonFormula" . Then you can use template formulas to change the value of SVAR 1 or MYSVAR "ButtonFormula" as appropriate.
Caution: This button will only work properly if you have selected the Enable external applications button check box and then clicked Execute formula on Template Wizard Step 6 (after which you may clear the Enable external applications button checkbox or leave it selected).
If SPC Charts and Reports or DMS Charts and Reports is selected on Template Wizard Step 6 – even if the Enable external applications button check box is cleared – clicking on this button during data entry will display a "Formula failed" message to the user. This message will also be displayed if Other Application is selected on Template Wizard Step 6 and the File name of application to run is not blank – even if the Enable external applications button check box is cleared.
Example
TEXT_OPT 1, "Execute" :
TIMER_DELAY 0, 0, 15, 0, 0, -1, -1
This formula changes the label for the Run now button on the TIMER_DELAY screen to "Execute", and then it displays the timer dialog with the Execute button instead of the Run now button.