ParentObject
(Engine-Level Function)
Description: | Returns the parent of an object. |
Returns: | Module |
Usage: | Script or steady state. |
Function Groups: | Advanced Module |
Related to: | Caller | ParentModule |
Format: | ParentObject(Object) |
Parameters: |
Object |
Required. The object you are inquiring about. |
Comments: | Returns the parent object of the given object instance. |
Example:
parent = ParentObject(Self()); If ! Valid(Parent); [ Slay(Self(), 0); ]
This example illustrates how the function may be used to monitor a module's parent to prevent orphaning of the object.