Gets the line number of the file which caused the syntax or execution error.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
SyntaxPublic ReadOnly Property Line As Integer
Get
public:
virtual property int Line {
int get () sealed;
}
Property Value
Int32
The line number of the file which caused the syntax or execution error.
Implements
IErrorLine
Remarks
A value of 0 indicates that there is no error line available.
This property works in conjunction with the other error properties to
allow your application access to the source
of a WinWrap Basic syntax or execution error.
Example
Display the error line during the ErrorAlert event:
private void basicIdeCtl1_ErrorAlert(object sender, System.EventArgs e)
{
MessageBox.Show("Error.Line = " + basicIdeCtl1.Error.Line);
}
Private Sub BasicIdeCtl1_ErrorAlert ( ByVal sender As Object, ByVal e As System.EventArgs)
MessageBox.Show("Error.Line = " & BasicIdeCtl1.Error.Line)
End Sub
private: System::Void basicIdeCtl1_ErrorAlert(System::Object ^ sender, System::EventArgs ^ e)
{
MsgBox::Show(L"Error->Line = " + basicIdeCtl1->Error->Line.ToString());
}
See Also