Member variable AutomationObject():interfaceName Foundation

Name of the COM interface used to connect to the COM/ActiveX object.

Attribute: EXPORTED READONLY
Data type: character
Description

This instance variable contains the name of the interface via which the AutomationObject is connected to the COM/ActiveX component.

The name of the interface is not unique and more than one COM/ActiveX component can have interfaces with the same name.

#pragma library( "ascom10.lib" ) 

PROCEDURE main() 
LOCAL oWord, oExcel 

oWord  := CreateObject( "Word.Application" ) 
oExcel := CreateObject( "Excel.Application" ) 

? oWord:InterfaceName      //  -> "_Application" 
? oExcel:InterfaceName     //  -> "_Application" 

oWord:quit() 
oExcel:quit() 
RETURN 

Feedback

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.