Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I've been pageframed...
Message
 
To
17/09/2009 16:12:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01424980
Message ID:
01424981
Views:
93
>Hi All,
>
>I'm using the following code block to access controls on my forms
>
> for each loobject in thisform.controls
>
> conditions...
>
> next loobject
>
>that works great until I get a form with a pageframe on it at which time
>it runs through condition block once and exits. I tried putting a loop in
>on seeing the pageframe but it just ignored it. Any ideas?
>
>Thanks
>Luke


Make this loop in a Method. Then call it:
thisform.MyLoop(thisform)

*** Method code:
LPARAMETERS oContainer
LOCAL loobject

FOR EACH loobject IN oContainer.controls
    IF INLIST(loobject.baseClass, "PageFrame", "Container", "Page", "Grid"....) && List all NEEDED container classes here
       thisform.MyLoop(loobject)
    ELSE
        .... conditions...   
    ENDIF
NEXT  loobject
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform