BasicNoUIObjErrorAlert Event |
Occurs when an 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<EventArgs> ErrorAlert
Public Event ErrorAlert As EventHandler(Of EventArgs)
public:
virtual event EventHandler<EventArgs^>^ ErrorAlert {
void add (EventHandler<EventArgs^>^ value);
void remove (EventHandler<EventArgs^>^ value);
}
Value
EventHandlerEventArgsImplements
IBasicNoUIErrorAlert
Remarks
The event handler receives an argument of type
EventArgs.
The error may be a syntax error, or a run-time error.
You can use the Error property to determine the nature of the error.
Only applications that handle errors directly should hide them from users.
Example
Show a message when there's a syntax or run-time error:
private void basicIdeCtl1_ErrorAlert(object sender, System.EventArgs e)
{
MessageBox.Show("A syntax or run-time error has occurred.");
}
Private Sub BasicIdeCtl1_ErrorAlert(ByVal sender As Object, ByVal e As System.EventArgs) Handles BasicIdeCtl.ErrorAlert
MessageBox.Show("A syntax or run-time error has occurred.")
End Sub
private: System::Void basicIdeCtl1_ErrorAlert(System::Object ^ sender, System::EventArgs ^ e)
{
MessageBox::Show(L"A syntax or run-time error has occurred.");
}
See Also