WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStError class reference

GetLastErrorDescription

Call this method to retrieve the last error description.

Ole declaration

BSTR GetLastErrorDescription(void);

Parameters
Return Value

GetLastErrorDescription returns the last error description set by the methods of the classes WStWiget, WStForm and WStFactory.

Remarks
Example
C#
using WirelessStudioOleWidgets;
WStError oError = new WStError();
WStForm oForm = new WStForm ();
oForm.EndCurrentForm();
string sErrorDescription= oError.GetLastErrorDescription();
Visual Basic 6 (Full Example: ListCtrlDemoModule.bas.txt)
Public wsError As New WStError
Public wsForm As New WStForm
...
Public Sub ShowErrorMessage()
wsForm.ShowMessageBox wsError.GetLastErrorDescription, "ListCtrl Demo", WS_MSG_BOX_OP_OK, 0, WS_MSG_BOX_ICON_ERROR
End Sub
...
See also

GetLastErrorDescription | EnableDebugMode

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference