Gets the filepath of the macro/module which caused a syntax or execution error.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic string File { get; }
Public ReadOnly Property File As String
Get
public:
virtual property String^ File {
String^ get () sealed;
}
Property Value
String
The filepath of the macro/module which caused a syntax or execution error.
Implements
IErrorFile
Remarks
This property works in conjunction with the other error properties to
allow your application access to the exact source
of a WinWrap Basic syntax or execution error.
Example
Display the error file during the ErrorAlert event:
private void basicIdeCtl1_ErrorAlert(object sender, System.EventArgs e)
{
MessageBox.Show("Error.File = " + basicIdeCtl1.Error.File);
}
Private Sub BasicIdeCtl1_ErrorAlert ( ByVal sender As Object, ByVal e As System.EventArgs)
MessageBox.Show("Error.File = " & BasicIdeCtl1.Error.File)
End Sub
private: System::Void basicIdeCtl1_ErrorAlert(System::Object ^ sender, System::EventArgs ^ e)
{
MsgBox::Show(L"Error->File = " + basicIdeCtl1->Error->File);
}
See Also