>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