Returns an object handle to thlast child node, zero if none
Function LastChild Returns Handle
| Call: | Get LastChild to HandleVariable |
LastChild finds the last child of a node and returns a handle to it. The message is sent to the parent node.
Get LastChild of hoRoot to hoNode // get the last node
While (hoNode<>0)
Send ShowInformation hoNode
Get PreviousSibling of hoNode to hoNextNode // now get previous sibling node
Send Destroy of hoNode // Important: get rid of the previous node object
Move hoNextNode to hoNode
Loop
See Also