Click or drag to resize

IErrorOffset Property

Gets the offset into the line which contains the syntax or execution error.

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

Property Value

Int32
The offset into the line which contains the syntax or execution error.
Remarks
If the error is a syntax error, the error refers to either the token before or after the offset. A value of -1 indicates a run time error.

This property works in conjunction with the other error properties to allow your application access to the exact source and cause of a WinWrap Basic syntax or execution error.

Example
Display the error offset during the ErrorAlert event:
private void basicIdeCtl1_ErrorAlert(object sender, System.EventArgs e)
{
    MessageBox.Show("Error.Offset = " + basicIdeCtl1.Error.Offset);
}
See Also