>Does anyone know the syntax for looping through
>all of the child nodes of a given node.
>
>According to the help, the Child property returns
>a referenece to the
FIRST>
child of a node object
>
>What if a node had 5 children? How would I loop
>and get a reference to each of the 5 child nodes?
>LPARAMETERS node
WITH this
If node.Children >
0
activate screen
?
Node.
Child.
Text
lnIndex =
Node.
Child.
Index
do while lnIndex #
Node.
Child.LastSibling.
Index
? .Nodes(lnIndex).
Next.
Text
lnIndex = .Nodes(lnIndex).
Next.
Index
enddo
EndIf
endwithCetin