Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tree control that can handle more than 65000 items?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00612390
Message ID:
00612491
Views:
27
>I'm having a problem with adding more than 65000 items to the ctTree control by DBI. The problem is that they use an array to access the nodes. This is a problem when I want to add more than 65000 items because I hit the VFP array limit. I can add the nodes, but trying to set any properties needs to access the array and then it crases. They consider this to be a bug in VFP and there's nothing they can do about it.
>
>I can work around most of it by relating their listindex to a cursor and storing info there, but I hit the wall trying to figure out how to change whether an item is checked or not. I don't think it can be done.
>
>So I'm wondering if anyone either knows some trick I'm missing to get it to work, or knows of a treeview control that doesn't have this limitation.
>
>Thanks,
>

Michelle,
You could use the standard Treeview control that ships with VFP. It implements the Nodes property as a collection and not an array.

A collection is in reality an array but it is accessed using a wrapper method/property (e.g. Item). Because of this, the only limits are those imposed explicitly by the developers or via the language it was written in (in this case VC++ where the 65000 limit does not apply).

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform