Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- Speed
Message
 
À
05/09/2000 11:14:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00412488
Message ID:
00412496
Vues:
14
>Does anybody in here know what's better or faster?
>
>This:
>STORE RGB(192,192,192) TO .optSecSold.Option1.DisabledBackColor, ;
>.optSecSold.Option2.DisabledBackColor, ;
>.optSecPurchased.Option1.DisabledBackColor, ;
>.optSecPurchased.Option2.DisabledBackColor, ;
>.optDivReceived.Option1.DisabledBackColor, ;
>.optDivReceived.Option2.DisabledBackColor
>
>OR this:
>WITH THISFORM
>.optSecSold.Option1.DisabledBackColor = RGB(192,192,192)
>.optSecSold.Option2.DisabledBackColor = RGB(192,192,192)
>.optSecPurchased.Option1.DisabledBackColor = RGB(192,192,192)
>.optSecPurchased.Option2.DisabledBackColor = RGB(192,192,192)
>.optDivReceived.Option1.DisabledBackColor = RGB(192,192,192)
>.optDivReceived.Option2.DisabledBackColor = RGB(192,192,192)ENDWITH

Just a SWAG, but I would think that the first would be faster. I believe that the RGB() function would only be called once. It used to be in FPW (I haven't test in VFP) that using STORE < value > TO < varlist > was faster than individual assignment states, as well. It's also more efficient to use STORE when dealing with literals, since only one of them is required.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform