Description

Find the immediate parent operator, if any, for some operator.

Return Type

An Object object.  

The parent operator or Nothing if no such the operator is global (has no parent).

Syntax

object.ParentOfOperator (Operator)

The ParentOfOperator Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McEngine.
OperatorRequired. An Object object.

The operator instance for which the parent operator is desired. This must be an interface implementing IMcHasObject or it must be the McObject of such an interface.

Remarks

This function provides a convenient way to determine if an “operator” (an interface implementing IMcHasObject) has an immediate parent operator and returns the parent if so. Use AncestorOfOperator to find any ancestor of a given type.