Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Node Indexing in TreeView
Message
De
06/06/2001 08:23:03
 
 
À
06/06/2001 07:00:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00515621
Message ID:
00515649
Vues:
15
You're close! The Add method will return a reference to the node. See additions to your code in bold. I'm not sure if that will work because the node you just created doesn't contain any children, but I haven't ran into that situation before.
Select CurNodes
Go     Top

Scan

   <b>oNewNode = </b>ThisForm.trvTreeView.Nodes.Add (cRelative, 4, cNodeKey, cText, nImage)

   If cNodeType = "s"
      <b>oNewNode.Expanded = .T.</b>
   endif

   .....

EndScan

ThisForm.trvTreeView.Nodes (1).Expanded = .T.
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform