Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing cursor contents in treeview control
Message
From
06/08/2003 09:57:31
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00817254
Message ID:
00817301
Views:
16
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform