>I used a cursor to populate the branches and leaves of a treeview. At the same time I populate a form array with the a unique value for each record in the cursor. Now I simply want to reposition the record pointer in the original cursor based on movement in the tree. I'm trying to use the NodeClicked property, but have not been able to get it to work correctly. What is the best way to handle this?
NodeClick :)
Don't you already have a cursor that matches NodeKey to Node's key?
=seek(Node.Key,'myCursor','NodeKey')
If your array is something like:
aNodes[recno()] = "NodeKeyInTV"
lnRecord = ascan(aNodes,Node.Key,1,-1,1,6)
if lnRecord # 0
go lnRecord in myCursor
endif
Cetin