Method AutomationObject():create() Foundation
Creates and connects to a COM/ActiveX object
:create( <cProgID> | <cCLSID> | <nInterface>, [<cServerName>], ;
[<cLicense>] ) --> oAutomationObject | NIL
This method returns an object of the class AutomationObject that is connected to a COM/ActiveX object. If the method fails, the value NIL is returned. In this case, the corresponding error number and a descriptive error message can be retrieved by calling the functions ComLastError() and ComLastMessage().
The AutomationObject instance returned by the method :create() is connected to the COM/ActiveX component specified in the method's parameters. The AutomationObject instance serves as a proxy that allows the Xbase++ application to call methods or to access properties of the COM/ActiveX component.
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.