Previous Topic

Next Topic

CreateObject - MaxBasic Function

CreateObject(ObjectType: String[, Interactive: Boolean]): Object

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.

Interactive

Optional, default true. If false no dialog will be displayed.
Applies to Automated Report Objects and Batch Printing/Processing Form Objects only. For all other objects the parameter is ignored.

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.

See Also

Report Functions

Book Contents

Book Index