Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With This
Message
 
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:
00344225
Views:
15
>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?

Yes, using WITH...ENDWITH is faster because otherwise the object references have to be completely resolved each time.

>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

See Above. The more "dots" the longer it takes to resolve.

>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?
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform