CreateObjectArray
Mon 01 January 2018Syntax
CreateObjectArray(Class_Name, Array_of_Args)
Description
Use the CreateObjectArray function to return an instance of a class.
Use this function when you must pass in parameters to create the object and you donât know when you write the code how many parameters are required. If you can create the object without passing in additional values, or if you know how many parameters are required, use the CreateObject function instead.
The array of parameters is an array of Any. It must be a one-dimensional array, that is, you cannot pass in an array of array of Any. You cannot pass in field references, that is, you cannot pass in references of the form:
RECORD.FIELDNAME
If you do not want to supply any parameters, you can use an empty array, or a reference to a Null array.
Parameters
Field or Control |
Definition |
---|---|
Class_Name |
Specify the name of the class you want to create an instance of, as a string. |
Array_Of_Args |
Specify an Array of Any containing all parameters for creating an instance of the class. |
Returns
A reference to newly created object.