Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With This
Message
From
10/03/2000 14:25:58
 
 
To
10/03/2000 10:54:37
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00344220
Message ID:
00344353
Views:
20
>If i have method code which references this.control for several controls (~30x) should a With..EndWith be used? Does it affect performance in any noticeable way?
>
>Does a fully qualified object (thisform.container1.container2.control) access any faster/slower than this.control in the container2 method?
>Should the With be fully qualified? ex: With thisform.container1.container2 vs With This
>
>I know it doesn't affect the functionality (they all work) but i'm curious how performance varies with each technique (and don't know how to test it correctly)
>
>any thoughts?

In addition to what george said, using a WITH/ENDWITH is a good idea because it makes the code easier to modify. IOW, if you decide to put all of these controls in a pageframe, instead of changing thirty lines of code, you will only have to change one to fix the reference.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform