RBScript.CompilerError

From Xojo Documentation

Event


RBScript.CompilerError(line as Integer, errorNumber as Integer, errorMsg as String)

Supported for all project types and targets.

This event gets called if the script could not be compiled due to a syntax error in the code.

Notes

line is a one-based line number at which the error may be found. Do not rely on this, though - the error sometimes is found in the succeeding line.

You can look up the meaning of errorNumber in the error codes section of the RBScript page.

The errorMsg parameter always returns "Error found while compiling" regardless of the error number.