Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enumerating pageframes
Message
De
11/05/2001 07:53:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00506054
Message ID:
00506147
Vues:
16
Hi John.

>> How do I access the controls on a pageframe, the following doesn't work: <<

As usual, there is more than one way to skin a fox < s >.
FOR EACH loPage IN Thisform.PageFrame.Pages
   FOR EACH loControl IN loPage.Controls
      Thisform.DoSomething( loControl )
   ENDFOR
ENDFOR
or
FOR lnPage = 1 TO Thisform.PageFrame.PageCount
   FOR lnControl = Thisform.PageFrame.Pages[ lnPage ].ControlCount
      Thisform.DoSomething( Thisform.PageFrame.Pages[ lnPage ].Controls[ lnControl ] )
   ENDFOR
ENDFOR
Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform