Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With ... EndWith
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00326056
Message ID:
00326061
Views:
20
Yes it is possible, I do it often.
With ThisForm.pgfAllPages
    With .pagOnePage
        .lblTest.Caption="Hello"
    EndWith
    With .pagAnotherPage
        .lblTest.Caption="Its me"
    EndWith
EndWith
If you return inside a With ... EndWith I've never found any problems - not saying there won't be, but I've never come across any.

>Hello.
>
>I'd like to ask two questions:
>1) Is it possible to nest With ... EndWith?
> With o1
> ...
> With o2
> ...
> EndWith
> ...
> EndWith
>
>2) Given:
> With o1
> ...
> Return
> EndWith
>
>Will the last With remain active even after Return is executed?
>
>TIA
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform