Click or drag to resize

ErrorVisibleLine Property

Gets the line number of the file which caused the syntax or execution error.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public int VisibleLine { get; }

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);
}
See Also