%SCR_ERRORCOUNT
Return script compilation error information
WTSupported in traditional Synergy on Windows
|
|
USupported on UNIX
|
VSupported on OpenVMS
|
num_error = %SCR_ERRORCOUNT([type][, scope])
Return value
num_error
The number of script compilation errors and/or warnings. (^VAL)
Arguments
type
(optional) One of the following: (n)
Report errors only. (default)
Report warnings only.
Report both errors and warnings.
scope
(optional) One of the following: (n)
Report the count for all scripts compiled in the window library that was opened by %SCR_OPENLIBRARY. (default)
Report only the count for the most recently compiled script.
Discussion
The %SCR_ERRORCOUNT function returns the number of script compilation errors and/or warnings for all scripts compiled in the currently open window library (opened by %SCR_OPENLIBRARY) or for the most recently compiled script.
The actual script compilation errors themselves are sent to the ESCRIPTERR_METHOD routine.
See also
- E_METHOD for more information on registering environment methods
- ESCRIPTERR_METHOD more information on registering and writing a routine for handling script compilation errors