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

Click here to load this message in the networking platform