Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enumerating pageframes
Message
From
11/05/2001 07:53:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00506054
Message ID:
00506147
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform