Click or drag to resize

BasicNoUIObjErrorLog Event

Occurs when a syntax error has occurred. (Evaluation errors do not trigger this event.)

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public event EventHandler<ErrorLogEventArgs> ErrorLog

Value

EventHandlerErrorLogEventArgs

Implements

IBasicNoUIErrorLog
Remarks
The event handler receives an argument of type ErrorLogEventArgs.
Property Description
Index The error index. (Starts at 1.)

The Index value starts at one. Each addition syntax error is logged with an index value one greater than the previous syntax error.

You can use the error properties to determine the nature of the error.

Example
Show a message for each syntax error:
private void basicIdeCtl1_ErrorLog(object sender, ErrorLogEventArgs e)
{
    MessageBox.Show("Syntax error #" + e.Index);
}
See Also