Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Scope of WITH ... ENDWITH
Message
De
09/02/2001 06:21:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
The Scope of WITH ... ENDWITH
Divers
Thread ID:
00474357
Message ID:
00474357
Vues:
61
Is that a Bug or a Feature? The Scope of WITH ... ENDWITH is not Local !?!?
That's a good feature (when it's conscious used) and a source of error too!

lo = newo("form")
lo.addObject("label1","label")

with lo
WithEndWidthBug()
WithEndWidthFeature()
endwith


procedure WithEndWidthBug
? .name
endproc


procedure WithEndWidthFeature
with .label1
? .name
endwith
endproc
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform