TEXT_OPT

This command allows you to set string values, such as button labels.

Syntax

TEXT_OPT option_number, "setting"

Valid entries for the option_number and "setting" parameters are:

option

explanation:

"setting"

description

0

Reset the TEXT_OPT 1 and TEXT_OPT 2 options to their default settings.

""

 

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.

4

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:

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.