Creates a child object instance that inherits the properties from the current object appropriate from the current object instance.
For instance when SQL data (nDataMOde is used) the oSQL member is inherited and shared. On Web data (nDataMode=4) the OHTTPSQL member and the cServerUrl are passed down. This method is used to simplify building nested hierachical objects and reduce the code required to handle different kind of data access mechanisms.
Use this method instead of CREATEOBJECT() for childobjects.
o.createchildobject(lcClass)
Return Value
Object or fails if the object fails to load.
Parameters
lcClass
The class to create.
Remarks
The class to create must be subclassed from wwBusiness as this methods sets custom properties of this class.
Example
THIS.oDetail = THIS.CreateChildObject("cLineItems")
See also:
Class wwBusinessObject© West Wind Technologies, 1996-2024 • Updated: 11/09/18
Comment or report problem with topic