The generic type can be pre-declared for easier typing: "Index" returns the position of a node in its parent children array, or -1 if the node is a "root" node. var t : Integer; t:=Node.Index; "Parent ...