Item Pointer

MoveToParentItem

Description

MoveToParentItem moves to the parent of the item pointed to by the supplied reference pointer.

Syntax

ptr:MoveToParentItem(ptrRef)

Parameters

ptrRef
item pointer: to a reference data item, moves this pointer to point at the parent of the reference data item.

Return Value

None

Remarks

The pointer can be used as its own reference pointer.

Example
pi:MoveToParentItem(pi) -- moves pi to point to its own parent
pi:MoveToParentItem(pi2) -- moves pi to point to pi2's parent