foxprogram
Programmer
I use treeview control on my form.
I don't know exactly how does it work
I would like to use this control to let the user to choose items from the treeview control.
Than I would like to check which items are checked by the user.
Now I did the follows:
- added treeview control
- load values into the tree
- user able to select items
(ThisForm.oleTreeView.Checkboxes=.t.)
Now I should know which items are selected.
It should be like this (but this ex. not works):
If ThisForm.oleTreeView.Nodes.Count > 0
For Each loNode In ThisForm.oleTreeView.Nodes
IF thisform.oletreeView.Nodes.Item.Checked
MESSAGEBOXthisform.oletreeView.selectedItem.Key)
ENDIF
EndFor
EndIf
Anybody could help me, please ?
Thank you
I don't know exactly how does it work
I would like to use this control to let the user to choose items from the treeview control.
Than I would like to check which items are checked by the user.
Now I did the follows:
- added treeview control
- load values into the tree
- user able to select items
(ThisForm.oleTreeView.Checkboxes=.t.)
Now I should know which items are selected.
It should be like this (but this ex. not works):
If ThisForm.oleTreeView.Nodes.Count > 0
For Each loNode In ThisForm.oleTreeView.Nodes
IF thisform.oletreeView.Nodes.Item.Checked
MESSAGEBOXthisform.oletreeView.selectedItem.Key)
ENDIF
EndFor
EndIf
Anybody could help me, please ?
Thank you