Hi all !
I fill a treeview control with some values. The user searches in the .text for some value. I want to select the found node, expanding the parent nodes. The code looks like this:
with thisform.treeview
for i = .SelectedItem.index to .nodes.count
node_text = .nodes.item(i).parent.text
if searched_text $ node_text then
foundit = .T.
&& HERE SHOULD BE THE CODE FOR SELECTING THE FOUND NODE
exit
endif
endfor
endwith
Thanks !
Salmano
I fill a treeview control with some values. The user searches in the .text for some value. I want to select the found node, expanding the parent nodes. The code looks like this:
with thisform.treeview
for i = .SelectedItem.index to .nodes.count
node_text = .nodes.item(i).parent.text
if searched_text $ node_text then
foundit = .T.
&& HERE SHOULD BE THE CODE FOR SELECTING THE FOUND NODE
exit
endif
endfor
endwith
Thanks !
Salmano