makeAutomationObject

makeAutomationObject();

The makeAutomationObject method of the ActiveXControl class creates an ActiveXAutomation object instead of a control, so that an ActiveX control can be treated as a standard automation object when you define a control that does not require a form in which to reside. (An ActiveX control is a standard automation object with interfaces to handle GUI requirements.)

Although the ActiveX object was imported as a control, it can be used as an automation object on the application server when you set the usePresentationClient property to false.

The following example assumes that you have imported the Microsoft SysInfo control type library (that is, sysInfo.ocx) into JADE as an ActiveX control. This example creates a JADE control instance and calls the makeAutomationObject method instead of adding the control to a form.

createSysInfoAsAutoObject();
vars
    actx : SysInfo;
begin
    create actx transient;
    actx.makeAutomationObject;
    write actx.oSVersion;
    write actx.oSBuild;
    delete actx;
end;