Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic grid row coloring ??
Message
De
15/03/2012 06:03:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01538395
Message ID:
01538412
Vues:
58
This message has been marked as a message which has helped to the initial question of the thread.
J'aime (1)
>...anyone know how I get what I want here? I'm thinking the iCase might be bad as I've never used one before...

I wrote this several times, and I'll write it again:

Any dynamic* expression is eval()'d for every visible cell on every refresh of the grid. There's always a chance you have an user with a slow machine, outdated video driver, or that you have a debugger open. Having a long dynamic* expression is then a hindrance.

My preferred technique to get around this is to simplify the expression to the max: a single field. For colors, an integer field; for logicals (like dynamicfontbold and such), a logical. Then pre-fill that field with your values - icase or whatever you have - and refresh it only when the data change (filling the cursor, validation upon data entry). The difference in speed is drastic - back in the days of VFP6 and a 200MHz machine my grids went from sluggish to instantaneous.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform