Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to NOT change DynamicBackColor
Message
De
23/02/2005 02:58:14
 
 
À
23/02/2005 01:21:23
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00989507
Message ID:
00989515
Vues:
23
>this.column4.DynamicBackColor = 'iif(duedate < DATE(),RGB(255,50,50),this.column4.DynamicBackColor)'

Try this instead:
this.column4.DynamicBackColor = 'iif(duedate < DATE(),RGB(255,50,50),'+this.column4.DynamicBackColor+')'

This is assuming, that this.column4.DynamicBackcolor is already set to some expression resulting in a color.

If it get's too complex, maybe create a function in the form, that you call from DynamicBackcolor:
this.column4.DynamicBackColor = 'thisform.columncolor(duedate)'

* thisform.columncolor method:
LPARAMETERS tdDueDate
...
Return RGB(...)

Bye, Olaf.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform