Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows tree
Message
De
26/06/2007 09:26:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/06/2007 09:18:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01233868
Message ID:
01235634
Vues:
15
>thnx all for your help, i have made the node with the help of cetins example. Starting with a dbf of 1600000 records in combination of other files i managed to make one cursor that contains all info i need to build my treeview. my final cursor contains 66130 records. Building the cursor takes the pc max 10 seconds. putting the info 66130 records takes me 50 seconds.
>
>this is my code :
>
>SCAN
> IF empty(mercedes_treeview.parentID)
> .Nodes.add(,tvwFirst,alltrim(mercedes_treeview.nodeID),ALLTRIM(mercedes_treeview.nodeText))
> ELSE
> .Nodes.add(alltrim(mercedes_treeview.parentID),tvwChild,alltrim(mercedes_treeview.nodeID),ALLTRIM(mercedes_treeview.nodeText))
> ENDIF
>ENDSCAN
>
>Does somebody knows how i can speed up the building of the treeview ?
>
>thnx

Kurt,
As I said in my original post, read June 2001 issue of UT magazine and download code from there. In that I showed a near 'ligthning fast' loading with an 'on demand' logic. Sample populates the nodes from folders as windows ecplorer does but easy to implement with a different node provider (and actually later I created a nodeProviderBase class which separates the node provider from UI - but finding it on my disk now is not easy for me).
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform