GxVariant: GetError

GetError

Get the error code and the error message of the last error.



 Public Function GetError(
	  errcode As Long,
	  errmsg As String ) As Boolean

Parameters

errcode
The output error code
errmsg
The output error message

Return Values

On error FALSE (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Public Function GetError(errcode As Long, errmsg As String) As Boolean

[Delphi] function GetError(var errcode: Integer; var errmsg : WideString) : Boolean;

[C++] BOOL GetError(long *errcode, LPTSTR* errmsg);

Remarks

See Also

Class GxVariant Overview GxVariant Properties GxVariant Methods Double GetErrorCode