General information
Category:
Coding, syntax & commands
Title:
The Scope of WITH ... ENDWITH
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only