TE_setvar

System Variable Functions

Sets the value of an RTE system variable.

int TE_setvar( int var, int val );

Inputs

var The name of the RTE System Variables to be set. The variable may be one from the list below.
val The value to be set.

The TE_setvar function sets an RTE System Variables.

One use of TE_setvar is to get a script to continue on error. Use
TE_setvar(TE_IGNORE_ERRORS, 1)
to continue script run on error and
TE_setvar(TE_IGNORE_ERRORS, 0)
to restore the default behavior of failing the script on error.

Return Values

This function returns 0 if it succeeds, and a negative error code if it fails. It also sets the global variable TE_errno.

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

In the following example, the script waits for the AUT to stabilize for 5.05 seconds after TE_wait_text, before continuing script execution.

TE_setvar( TE_SILENT_SEC, 5);
TE_setvar( TE_SILENT_MILLI, 50);
TE_wait_text( "Enter secret code:", 30, 29, 13, 1, 13, ret_col, ret_row, ret_text);