Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
In Parent Object Refresh or class Object
Message
De
30/05/2001 10:34:06
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
30/05/2001 07:06:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00512573
Message ID:
00512651
Vues:
6
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform