LastChild - cXMLDOMDocument

Finds the last child of a node and returns a handle to it

Type: Function

Return Data Type: Handle

Parameters: None

Return Value

Returns an object handle to thlast child node, zero if none


Syntax
Function LastChild Returns Handle

Call: Get LastChild to HandleVariable


Description

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

FirstChild | NextSibling | PreviousSibling