The ObjectParent attribute function determines the father (parent) object of the object. It searches for an object, beginning on the nearest parent, matching the class name given as parameter. If no object can be found, the function returns NoValue. This function works equivalent to an object reference definition of a class.
Syntax | ||||
ObjectParent(ClassName) | ||||
Return value | ||||
TCE object |
The returned object is typeless and must be assigned or typed through a typecast before using a TCE object variable. | |||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
ClassName |
String |
ByVal |
The class name matching the parent object. |
See also