The error condition of the Xbase++ COM/ActiveX layer is thread local.
Function ComLastError() Foundation
Returns error code after calling GetObject() or CreateObject()
ComLastError() --> nError
A numeric error value indicating the code of the error that occured in the functions GetObject() or CreateObject(). If zero is returned, no error occured.
The function ComLastError() can be used to obtain the error code after the function GetObject() or CreateObject() is called.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.