Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing cursor contents in treeview control
Message
De
06/08/2003 09:57:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00817254
Message ID:
00817301
Vues:
19
but how can i load the records to the control ?
#DEFINE tvwLast    1  && Last sibling

*!* now scan the cursor and add the nodes
lcAlias = << Alias to use to populate TreeView >>
lcKeyField = << Primary Key Field >>
lcTextField = << Name of field to use as Node Text >>
SELECT ( lcAlias )
SCAN
  lcKey = UPPER( ALLTRIM( lcAlias ) ) + '*' + ALLTRIM( TRANSFORM( EVALUATE( lcKeyField ) ) )
  This.Nodes.Add( , tvwLast, lcKey, ALLTRIM( TRANSFORM( EVALUATE( lcTextField ) ) ) ) 
ENDSCAN
This.Sorted = .T.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform