BasicNoUIObjErrorLog Event |
Occurs when a syntax error has occurred.
(Evaluation errors do not trigger this event.)
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic event EventHandler<ErrorLogEventArgs> ErrorLog
Public Event ErrorLog As EventHandler(Of ErrorLogEventArgs)
public:
virtual event EventHandler<ErrorLogEventArgs^>^ ErrorLog {
void add (EventHandler<ErrorLogEventArgs^>^ value);
void remove (EventHandler<ErrorLogEventArgs^>^ value);
}
Value
EventHandlerErrorLogEventArgsImplements
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);
}
Private Sub BasicIdeCtl1_ErrorLog(ByVal sender As Object, ByVal e As ErrorLogEventArgs) Handles BasicIdeCtl.ErrorLog
MessageBox.Show("Syntax error #" + e.Index)
End Sub
private: System::Void basicIdeCtl1_ErrorLog(System::Object ^ sender, ErrorLogEventArgs ^ e)
{
MessageBox::Show(L"Syntax error #" + e->Index.ToString());
}
See Also