Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nested WITH
Message
 
 
À
17/01/2002 07:34:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00606011
Message ID:
00606278
Vues:
17
Hilmar,

I think I've nested them 4 (maybe 5 or 6) levels deep before. I do not think there's a limit other than a logical limit to how deep your containership hierarchy goes.

>I am curious ... does anybody know how many levels you can nest WITH ... ENDWITH?
>
>Example, to explain what I mean:
>
>
>with ThisForm
>  .Visible = .T.  && Applies to ThisForm
>  with .PgfPageFrame
>    .ActivePage = 2  && Applies to ThisForm.PgfPageFrame
>  endwith
>  .MyMethod()  && Back to ThisForm
>endwith
>
>
>Looks like there is some sort of stack (comparable to PUSH/POP commands) for WITH...ENDWITH.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform