Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBI Tech ctTree Control Problem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Miscellaneous
Thread ID:
01287375
Message ID:
01287569
Views:
9
I thought of that, but then I would have to iterate through the entire tree from top to bottom looking for the PK value. There doesn't seem to be any alternative though.

Why? I assume that you want to add the child nodes when a user clicks on a specific paretn node. If this is the case, one of the parameters to the NodeClick event is the index of the node that you clicked on. So all you have to do to access the Nodecargo is to use this syntax:
PKvalue = NodeCargo( nIndex )
With a standard ActiveX TreeView control I could do:

I am sure you meant to say "The Microsoft TreeView control" < s >.

But the DBI control doesn't seem to support the typical collection syntax.

That's correct. The DBI controls are array based.

It's sort of disheartening since I paid $400 for the set of controls and I find out they don't follow standards.

It's just a different way of doing things. Once you get out of the "collections" mind set and learn how to work with the array based controls, it is not so bad...
Previous
Reply
Map
View

Click here to load this message in the networking platform