Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the child nodes of a selected root node?
Message
De
28/11/2006 03:06:34
 
 
À
27/11/2006 21:24:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01172565
Message ID:
01172851
Vues:
18
>Can you help me here? I'm getting error OLE IDispatch exception code 0 from Nodes: Invalid key..
>
>
>How can I get the child nodes of a selected root node?
>
>Assuming that you have an object reference to the parent node:
>
>
>*** Process all the child nodes
>lnChildren = toNode.Children
>IF lnChildren > 0
> loChild = Thisform.oTree.Nodes( Thisform.oTree.Nodes( toNode.Key ).Child ) <--- I get error here
> DO WHILE VARTYPE( loChild ) = [O]
> *** Do something with the child node
> *** And get the next child
> loChild=loChild.Next
> ENDDO
>ENDIF
>
&& NodePtr = selected node

local ChildNodePtr
ChildNodePtr = m.NodePtr.Child

do while !isnull(m.ChildNodePtr)
   ? m.ChildNodePtr.Key
   ChildNodePtr = m.ChildNodePtr.Next
enddo
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform