Share this page

# TE_setvar

Example: 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.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: