Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview - trying to display contents of dbf
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01020950
Message ID:
01020967
Vues:
27
thisform.TreeView.Nodes.Add(,1,"AllAccounts","All Accounts",0)
SCAN
   DO CASE
      CASE EMPTY(Code2) AND EMPTY(Code3)
           thisform.TreeView.Nodes.Add("AllAccounts",4,ALLTRIM(Code1),ALLTRIM(Name),0)
      CASE NOT EMPTY(Code2) AND EMPTY(Code3)
           thisform.TreeView.Nodes.Add(ALLTRIM(Code1),4,ALLTRIM(Code1)+ALLTRIM(Code2),ALLTRIM(Name),0)
      CASE NOT EMPTY(Code2) AND NOT EMPTY(Code3)
           thisform.TreeView.Nodes.Add(ALLTRIM(Code1)+ALLTRIM(Code2),4,ALLTRIM(Code1)+ALLTRIM(Code2)+ALLTRIM(Code3),ALLTRIM(Name),0)
ENDSCAN
something like this (not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform