The CreateObject function takes different arguments depending on the value of the first argument:
CreateObject('com', class, context, serverName)
CreateObject('component', component-name)
CreateObject('corba', context, class, locale)
CreateObject('java', class)
CreateObject('webservice', urltowsdl, [, portname])
Lucee Function Reference
Function CREATEOBJECT
Example
createobject(string type,[string classname,[object context,[object arg4]]]):any
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
type | string | Yes |
one of the following: |
classname | string | No |
the usage of this argument depend on type defined with argument "type": |
context | object | No |
the usage of this argument depend on type defined with argument "type": |
arg4 | object | No |
the usage of this argument depend on type defined with argument "type": |