Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In Parent Object Refresh or class Object
Message
From
30/05/2001 10:34:06
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
30/05/2001 07:06:29
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00512573
Message ID:
00512651
Views:
4
>Hi
>
>Just a query - and this is a question regarding performance.
>
>If I had a container that contained 10 (sub-classed) buttons, and the buttons were only enabled on certain conditions. Would it be better to have a SetAll() in the Refresh of the Container, or would it be better to have it in the Refresh() of the Button Class?
>
>Any suggestions? Does it make a real difference where it performs this task?
>
>Thanks
>Kev

Well, if it's primarily about performance, I would say that it makes more sense to put the code in the container. Then VFP just needs to run one method, instead of 10 different REFRESH() methods.

From an OO point of view, if these buttons and the container were forming a self contained control, then i'd use the container REFRESH().
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform