Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor length limitations and complex conditio
Message
From
23/08/2009 11:20:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01419452
Message ID:
01419947
Views:
61
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform