Qualified ActiveX Control and Object Names

In a Screen Section item, Format 14 DISPLAY statement, and a CREATE statement, "control-type-name" or "object-name" can be a qualified or unqualified name of an ActiveX control or COM object. ActiveX control and COM object names are defined in the Special-Names paragraph. The AcuBench Screen Designer or AXDEFGEN generates a COPY file for each ActiveX control or COM object type. You should copy this COPY file into the Special-Names paragraph. In rare cases, two different ActiveX controls or COM objects may have the same name. To use both in a single COBOL source file, you must qualify the names using "IN" or "OF" followed by the name of the "root" object. The "root" object name is defined in the ActiveX COPY file following the word OBJECT.

For example, if a single COBOL source file invokes methods in the Application object of both Microsoft Word and Microsoft Excel, it must qualify the Application object name as in the following two CREATE statements:

CREATE Application OF Word HANDLE IN WORD-HANDLE.
CREATE Application OF Excel HANDLE IN EXCEL-HANDLE.