An item's parent.
Usage
StringValue = Get_Property(OLECtrlEntID, "OLE.ItemParent[key]")
Values
StringValue can be any string meeting the following format requirements:
Syntax: A single item key
Indices
Index | Description |
---|---|
key | An item's unique key |
Remarks
The ItemParent property gets the key to an item's parent. The value of this property is "" if the parent item is the Root Item.
This property cannot be set. Use this property for traversing the tree upward in the hierarchy.
If you simply need to know if the item is at the root level, you can use the ItemParentIsRoot property instead.
Example
// Get the parent of the item whose key is "Item1" ItemParent = Get_Property(@Window:".OLE_TREE", "OLE.ItemParent[Item1]")