Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Controls Hierarchy at design time.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00565636
Message ID:
00565645
Vues:
19
>Is there a way to get a controls hierarchy at design time? I see the SYS(1272) but it's only good at runtime. I can select a group of controls and get there names with ASELOBJ but I'm not sure how to get the hierarchy ie. form name, pageframe..... TIA

From parent to childs you can do something like this !
For m.i = 1 TO thisform.ControlCount
    oControl = thisform.Controls[m.i]
    If  oControl.Baseclass$"Pageframe Container "
        For m.j = 1 TO oControl.controlCount
            oCHILDControl = oControl.controls[m.j]
            wait window "Here is the name of the control:"+oCHILDControl.name nowait
        endfor
    endif
endfor
Ps: Say hello to people of BR (I used to live there for more than one year ! Great city, nice people !)


CLAUDIO
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform