Information générale
Catégorie:
Programmation Orientée Object
>>>>That's a tough call Jim and I agree with your reasons. A full form refresh may have some significant overhead in some situations. But I know your philosophy is 'do it properly, work out performance issues later only if necessary' - or something close to that, right?
>>>>
>>>>I wonder what others have to say on this. Thanks for the insight.
>>>
>>>Well, you don't have to refresh the full form... Also, you could create a thisform.color_assign method that checks for your class that displays the color, and if it exists, refresh it...
>>>
>>>BOb
>>
>>Hi again Bob,
>>I think Jim implied that any firm link between two objects in this way is undesirable, so a form refresh is the go. If I simply refresh the other control then I may as well update the control value rather than the form value.
>
>Just to play devil's advocate- isn't refreshing the entire form overkill for this?
>
>If so, then the logical conclusion would be to refresh the single control that is bound to the form. To refresh that control, you have to know it's name, and that is the same type of object dependency Jim was advising to avoid.
Exactly my point. I just didn't express myself that well. I try to avoid unnecessary refreshs because I find they do have a significant performance hit.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement