XojoScript.CompilerError
From Xojo Documentation
Event
XojoScript.CompilerError(location As XojoScriptLocation, error As XojoScript.Errors, errorInfo As Dictionary) As Boolean
Supported for all project types and targets.
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. Return True to stop the compilation and prevent further errors/warnings.
Notes
XojoScriptLocation contains information about the location in the script containing the error.
XojoScript.Errors shows the enumeration for all the available error messages.
The errorInfo Dictionary keys are not stable nor are they guaranteed to always be present. You should explicitly use Dictionary.Lookup or Dictionary.HasKey when looking up these values.