Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview - Move in cursor based on current node
Message
From
07/10/2004 12:43:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/10/2004 12:26:55
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00949603
Message ID:
00949613
Views:
12
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform