CreateObject
Mon 01 January 2018Syntax
CreateObject(str_class_name, create_par, ...)
Where str_class_name either identifies:
-
A class by class name
-
A class of OLE Automation object in the form:
app_name.object_name
Description
Use the CreateObject function to return an instance of a class. You can use this function to access an application class, a PeopleCode built-in object (like a chart), or an OLE Automation object.
If the class you are creating requires values to be passed, use the create_par parameters to supply them, or use the CreateObjectArray function.
Parameters
Field or Control |
Definition |
---|---|
str_class_name |
Specify the name of the class that you want to instantiate an object from. |
create_par |
Specify the parameters required by the class for instantiating the object. |