CreateObject(ObjectType: Variant): Variant
Create an automation object of the ObjectType specified. The type is a standard Windows OLE object name, for example, Excel.Application.
Available in Script functions, Report Designer and Import Designer.
Press F1 with the cursor in the ObjectType to see the Automated Documentation for the object.
CreateObject function syntax has these named arguments:
Parameter |
Description |
ObjectType |
Required. Type of object to create. |
Note: Objects created using CreateObject will be opened in the Accredo window. To open a floating window, use the OpenWindowForm or CreateCustomWindowForm functions.
Properties of objects created can differ, based on circumstances under which objects are created. See also MaxBasic Object Properties.