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.


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

The name of the class to instantiate.

The class library containing the class. This parameter is optional if the class is one of the built-in Stonefield Query classes and no additional parameters are used.

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

© Stonefield Software Inc., 2023 • Updated: 11/06/18
Comment or report problem with topic