CreateObject()

Creates an object and makes it available in the CFML space. Defaults type to a 'component'

Usage

OBJECT = CreateObject( type, object, argument )
Argument Summary
type type of object ('component', 'java' or 'webservice')
object object to create; if 'component' the location of the CFC; if 'java' the full class name; if 'webservice' the WSDL [optional]
argument if type='webservice' then this is the arguments; if type='java' then this is the JAR to load from [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

CreateObject(
   type=?, 
   object=?, 
   argument=?
);

Supports passing parameters as a structure using ArgumentCollection:

CreateObject( ArgumentCollection={
   type : ?, 
   object : ?, 
   argument : ?
} );