HypGetLastError
Data provider types: All
Description
HypGetLastError() returns the last error message stored in Smart View. It retrieves the error message as it is stored in the server (error messages returned via VBA functions may not match those retrieved from the server).
Syntax
HypGetLastError (vtErrorCode, vtErrorMessage, vtErrorDescription)
ByRef vtErrorCode As Variant
ByRef vtErrorMessage As Variant
ByRef vtErrorDescription As Variant
Parameters
vtErrorCode: The error code number
vtErrorMessage: The error message
vtErrorDescription: A description of the error
Return Value
Returns 0 if successful; otherwise, returns the appropriate error code.
Example
Public Declare Function HypGetLastError Lib "HsAddin" (ByRef vtErrorCode As Variant, ByRef vtErrorMessage As Variant, ByRef vtErrorDescription As Variant) As Long
Sub Example_HypGetLastError
ReturnValue = HypGetLastError(ErrorCodeValue, ErrorMessageValue, ErrorDescriptionValue)
End Sub