WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStError class reference

GetLastErrorCode

Call this method to retrieve the last error code.

Ole declaration

LONG GetLastErrorCode(void);

Parameters
Return Value

GetLastErrorCode return the last error code set by the methods of the classes WStWiget, WStForm and WStFactory.

Remarks

The error code can be one of the following:

Those values can be found on the WSTErrorCodes enumeration.

Example
C#
using WirelessStudioOleWidgets;
WStError oError = new WStError();
WStForm oForm = new WStForm ();
oForm.EndCurrentForm();
int iLastErrorCode = oError.GetLastErrorCode();
Visual Basic 6
Public wsError As New WStError
Public wsForm As New WStForm
Dim lErrorCode as Long
wsForm.EndCurrentForm
lErrorCode = wsError.GetLastErrorCode
See also

GetLastErrorDescription | EnableDebugMode

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