ErrorVisibleLine Property |
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 int VisibleLine { get; }
Public ReadOnly Property VisibleLine As Integer
Get
public:
virtual property int VisibleLine {
int get () sealed;
}
Property Value
Int32
The visible line number of the file which caused the syntax or execution error.
(THe visible line number excluds the code hidden from the user when viewed in the IDE.)
Implements
IErrorVisibleLine
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 visible line number during the ErrorAlert event:
private void basicIdeCtl1_ErrorAlert(object sender, System.EventArgs e)
{
MessageBox.Show("Error.Line = " + basicIdeCtl1.Error.VisibleLine);
}
Private Sub BasicIdeCtl1_ErrorAlert ( ByVal sender As Object, ByVal e As System.EventArgs)
MessageBox.Show("Error.Line = " & BasicIdeCtl1.Error.VisibleLine)
End Sub
private: System::Void basicIdeCtl1_ErrorAlert(System::Object ^ sender, System::EventArgs ^ e)
{
MsgBox::Show(L"Error->Line = " + basicIdeCtl1->Error->VisibleLine.ToString());
}
See Also