Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Node Indexing in TreeView
Message
De
06/06/2001 07:00:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Node Indexing in TreeView
Divers
Thread ID:
00515621
Message ID:
00515621
Vues:
39
Hi,

I have a treeview control in a form. In the form's method where I populate it, when certain condition becomes true (during the add loop), I want to have that node expanded. How can I reference the last node added index in order to set its expanded property to true?
Select CurNodes
Go     Top

Scan

   ThisForm.trvTreeView.Nodes.Add (cRelative, 4, cNodeKey, cText, nImage)

   If cNodeType = "s"
      ThisForm.trvTreeView.Nodes ( ? ).Expanded = .T.
   endif

   .....

EndScan

ThisForm.trvTreeView.Nodes (1).Expanded = .T.
Thanks,

Fernando
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform