Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With ... EndWith
Message
From
02/02/2000 08:02:31
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00326056
Message ID:
00326066
Views:
23
>Hello.
>
>I'd like to ask two questions:
>1) Is it possible to nest With ... EndWith?
> With o1
> ...
> With o2
> ...
> EndWith
> ...
> EndWith
>

Yes just like the scoping of conditional and looping constructs can be nested. They are not cumulative; only the innermost one currently open has an effect.

>2) Given:
> With o1
> ...
> Return
> EndWith
>
>Will the last With remain active even after Return is executed?
>

No, WITH...ENDWITH is scoped to the current execution context.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform