%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])

num_error

The number of script compilation errors and/or warnings. (^VAL)

type

(optional) One of the following: (n)

D_ERROR

Report errors only. (default)

D_ALERT

Report warnings only.

D_ALL

Report both errors and warnings.

scope

(optional) One of the following: (n)

D_LIBRARY

Report the count for all scripts compiled in the window library that was opened by %SCR_OPENLIBRARY. (default)

D_SCRIPT

Report only the count for the most recently compiled script.

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.