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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao