ErrMessage

(ODBC Manager Library)

Description: Returns a text message for the error code handed to it as a parameter
Returns: Text message for the code provided.
Usage: Script or steady state.
Function Groups: ODBC
Related to: AddConnection | BuildDelete | BuildInsert | BuildSelect | BuildUpdate | ConvertToDbDate | ConvertToDbTime | ConvertToDbTimeStamp | ConvertToVTSDate | ConvertToVTSTime | ConvertToVTSTimeStamp | CopyRecords | DBDropList | DBGridList | ExecuteQuery | ExecuteQueryCachedFlushCache | FormatBatchQuery | GetConnList | ResultFormat | StatsWin | TableSynch | Transaction | TransactionCached
Format: \ODBCManager.ErrMessage(ErrCode)
Parameters:  
ErrCode
Required. A numeric error code for which you want to obtain the appropriate message.
Comments:

This module is a member of the ODBCManager Library, and must therefore be prefaced by \ODBCManager, as shown in "Format" above.

The error message / code is passed to \GetPhrase and will return the message in the current language if other than English and if available.

Example:

...
    MsgToReturn = ODBCManager.ErrMessage(ReturnedCode);
...