Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I've been pageframed...
Message
 
À
17/09/2009 16:12:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01424980
Message ID:
01424981
Vues:
94
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform