Purpose
Retrieves the last error message.
Syntax
MIGetErrorMessage() As String
Return Value
A string that contains the error message.
Description
MIGetErrorMessage() should be called immediately to get useful data when a function's return value indicates its failure and you want to know the cause. Many of the returned errors are system-set errors.