Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview:
Message
 
To
28/06/2005 08:54:23
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026975
Message ID:
01026976
Views:
29
This message has been marked as the solution to the initial question of the thread.
Q1. After search in table to find the Agname:
thisform.oleTree.SelectedItem = thisform.oleTree.Nodes("_RT"+TRANSFORM(cc1.acctgrp_id))
Q2. If I undestood your question rigth you want to change the Node Text in treeView, then (If I am right)
thisform.oleTree.Nodes("_RT"+TRANSFORM(cc1.acctgrp_id)).Text = ALLTRIM(agname) && or whatever you want
>I have a treeview which gets built like so:
>
>
>x2=	.Nodes.ADD("_RT"+TRANSFORM(cc1.parent_id),4,"_RT"+TRANSFORM(cc1.acctgrp_id),ALLTRIM(agname))
>.Nodes(x2.INDEX).expanded=.T.
>
>
>Question 1
>
>Now I have a search field where the user enters a agname
>I want to find the first entry in the tree and high light it maybe searching the table and then using the key:
"_RT"+TRANSFORM(cc1.acctgrp_id)
>
>
>Question 2
>I want to apdate the label agname without rebuilding the whole table.
>
>
>Is that possible??
>
>Thanks
>
>Peter
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform