Gets the offset into the line which contains the syntax or execution error.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
SyntaxReadOnly Property Offset As Integer
Get
property int Offset {
int 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);
}
Private Sub BasicIdeCtl1_ErrorAlert ( ByVal sender As Object, ByVal e As System.EventArgs)
MessageBox.Show("Error.Offset = " & BasicIdeCtl1.Error.Offset)
End Sub
private: System::Void basicIdeCtl1_ErrorAlert(System::Object ^ sender, System::EventArgs ^ e)
{
MsgBox::Show(L"Error->Offset = " + basicIdeCtl1->Error->Offset.ToString());
}
See Also