Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Scope of WITH ... ENDWITH
Message
 
 
To
09/02/2001 06:21:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00474357
Message ID:
00474402
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform