Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicBackColor length limitations and complex conditio
Message
De
23/08/2009 11:20:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01419452
Message ID:
01419947
Vues:
59
This message has been marked as a message which has helped to the initial question of the thread.
>Thanks a lot Martina.
>
>>you can use method of grid or form

Though, if you think of using a debugger while having a method call returning the color, be prepared to meditate a lot. It's evaluated once per cell on each grid refresh; while not much at runtime, with the debugger open, it may take some time, depending on the number of such calls.

The way to circumvent this is to have a iForeColor and iBackColor fields in grid's cursor, which are then taken as dynamic*color expressions - simple field, no calculation. You do calculate once per row and store it - when the values in the row change (when the cursor is populated and in .BRCC()). May even save you a milliwattsecond or two :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform