Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- Speed
Message
 
À
05/09/2000 11:39:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00412488
Message ID:
00412527
Vues:
19
Morys, one easy way would be to put RGB(192,192,192) into Watch window and see the result.

>How do I find the numeric values?
>
>
>>1.) Faster: do something like:
>>
>>nRGB = 12632256 &&RGB(192,192,192)
>>with thisform
>> ? Seconds()
>> for i = 1 to 10000
>> STORE nRGB TO .optSecSold.Option1.DisabledBackColor, ;
>> and_all_other_properties
>> endfor
>> ? seconds()
>> for i = 1 to 10000
>> .optSecSold.Option1.DisabledBackColor = nRGB
>> endfor
>> ? seconds()
>>EndWith
>>
>>2.) RGB() is slow. If you can avoid it, use the numeric value instead of the function.
>>
>>Joerg Karpa
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform