Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Scope of WITH ... ENDWITH
Message
 
 
À
09/02/2001 06:21:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00474357
Message ID:
00474402
Vues:
16
There was a discussion in late December about this. It was basically decided that while VFP supports this, it makes for some unreadable and hard to maintain code.

See message 456938 and its associated thread for more information.

>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
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform