This is very simple. Each node object has a Checked property which is .T. if the checkbox is ticked. So you can loop through the nodes collection, something like this:
FOR EACH loNode IN THISFORM.MyTreeView.Nodes
IF loNode.Checked
* This node is checked
ENDIF
ENDFOR
Thanks for your reply...this will solve my problem
but 2 more question arise in my mind......
1. If we tick mark parent node then its all child nodes should also be marked as true. Because if we selected a parent then all its childs should also be marked as true automatically. Why is it not so? or how can we do so
2. Is there any other single line command to get all checked checkbox values to any cursor so that it become easy to do query with other tables.
What you have suggested will also solve my problem. But I think it will take me long to come to the target. As first of all I will have to make readwrite cursor and store all the checked valued one by one from it and then query it with other tables to generate reports.
Off-hand, I don't know the answers to those questions. I will have to experiment. I will try to find the time to do that. Meantime, maybe someone else can help?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.