Home > Language Reference > System Variables

System Variables

System variables are predefined variables which can be used in any WinTask script. Their names always begin with the character #.

System variables are used to modify the default behavior of WinTask.

System variables have a predefined type. If the type is string, the name of the system variable ends with the character $. 

Some system variables are read-only: they contain values that cannot be changed by the user. For example, the system variable #ErrorMsg$ contains the error message when script execution fails.

You can change most system variables, however, simply by assigning a new value to the variable. For example, to change the current value of the #IgnoreErrors system variable, which controls Error handling, simply assign a new value:
#IgnoreErrors=1
This change will persist for the duration of the current script execution or until you make a new assignment.


This section describes the System Variables available in WinTask and their default values.

ActionTimeout
BitmapPrecision
CurrentLine
DbDateFormat
DecimalSeparator$
ErrorCode
ErrorFunction$
ErrorLine$
ErrorMsg$
ErrorScript$
ExecTimeout
ExecuteDelay
FTPTimeout
HideIcon
HideTrayIcon
HTMLBrowser$
HTMLPosRetry
IgnoreErrors
IgnoreHTMLCase
LastErrorLine
LastErrorLine$
PageSynchroLevel
PauseTimeout
Precision
ScriptAfterTimeout$
SendKeysDelay
UseExact
UsePageExact