Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically Change Grid Highlight Color
Message
De
30/09/2013 17:53:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01584479
Message ID:
01584486
Vues:
68
J'aime (1)
I use the following code to set the background color dynamically based on row selection:
.SetAll("DynamicBackcolor","ICASE(c_scrnbrow.date > DATE(), _VFP.GridForeRows, EMPTY(c_scrnbrow.number), _VFP.GridForeRows, c_scrnbrow.pos%2 = 0, _VFP.GridEvenRows, c_scrnbrow.pos%2 > 0, _VFP.GridOddRows)","Column")
In VFP 7 you do not have the ICASE() command, so you would have to use nested IIF() commands.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform