Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtle question
Message
De
03/02/1999 21:52:05
 
 
À
02/02/1999 22:51:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00182331
Message ID:
00183745
Vues:
16
>>>>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
Fil
Voir

Click here to load this message in the networking platform