CreateObject creates an instance of the specified class. Although you can use the CREATEOBJECT() function in a script, that function can't be used for classes contained within SFQuery.exe since it can't access them. In that case, use the CreateObject method.

Syntax

CreateObject(Class as String, Library as String [, Parameter1 as Variant 
    [, Parameter2 as Variant [, Parameter3 as Variant]]])

Parameters
Class
The name of the class to instantiate.

Library
The class library containing the class.

Parameter1 through Parameter3
Optional parameters to pass to the Init method of the class.

Return Value
An instance of the specified class.

See also

Application Object