Retrieves the error message associated with a given error code.
VB6/VBA
Debug.Print "Testing API_ErrorLookup ..." Dim nErrCode As Long nErrCode = 33 Debug.Print "ErrorLookup(" & nErrCode & ")=" & apiErrorLookup(nErrCode)
Output
Testing API_ErrorLookup ... ErrorLookup(33)=Invalid key length (BAD_KEY_LEN_ERROR)
VB.NET
Console.WriteLine("Testing API_ErrorLookup ...")
Dim nErrCode As Integer
nErrCode = 33
Console.WriteLine("ErrorLookup(" & nErrCode & ")=" & General.ErrorLookup(nErrCode))
[Contents]