Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to optimize use of the treeview-control in VFP?
Message
De
29/01/1999 06:03:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
How to optimize use of the treeview-control in VFP?
Divers
Thread ID:
00181709
Message ID:
00181709
Vues:
59
I'm currently doing a project involving using two treeview
controls to make a structure.
The structure can consist of several thousands nodes.
- What's the best way to recursively add the nodes in the tree?
All the data for the nodes in the right three are gathered on
startup and loaded into a VFP cursor. I've found that
SCAN
...
ENDSCAN
doesn't work very well with recursive functions.
The max number of levels in the tree will be about 5-6.
Is it better to make the addnodes-function non-recursive for
speed-improvements?
- What's the best way to get the a branch of the tree on the left
and add to a selected node in the tree to the right?
I've programmed one recursively, but it performs poorly when
the number of nodes in the branch approaches >1000 nodes.

Any suggestions, algorithms, URLs or help on this matter would be highly appreciated.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform