Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How much faster or slower is to use with..endwith?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
How much faster or slower is to use with..endwith?
Miscellaneous
Thread ID:
00407175
Message ID:
00407175
Views:
62
I have a form with several bizobjs and I need to set properties in all of them.

For example, and I now use:
Thisform.bizobj1.vp = 1
Thisform.bizobj1.requery()

Thisform.bizobj2.vp = 3
Thisform.bizobj2.requery()
What is the speed change if instead I decide for:
with thisform
    with .bizobj1
        .vp = 1
        .requery()
    endwith
    with .bizobj2
        .vp = 3
        .requery()
    endwith
endwith
What criteria should I use to choose either way of doing this?

Thanks!

Alex
Low-carb diet not working? Try the Low-food diet instead!
Next
Reply
Map
View

Click here to load this message in the networking platform