Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Negative Grid Values in Red
Message
 
À
31/08/1998 08:23:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00131466
Message ID:
00131472
Vues:
18
>I would like to have a grid Dynamically color negative values in red. I know this involves the DynamicForeColor Property, but I seem to be having a problem getting it to work properly. I have tried the following code:
>
>for mclr = 1 to thisform.grid1.columncount
>
>thisform.grid1.setall("DynamicForeColor", "iif(thisform.grid1.columns(mclr).text1.value < 0,RGB(255,0,0),RGB(0,0,0))","Column")
>
>endfor
>
>The columns that actually contain numeric data varies but always starts at column 3. Do I need to look at each column individually?
>
>Thanks,
>
Scott,

Don't look at the columns at all, look at the recordsource field;


thisform.grid1.setall("DynamicForeColor", "iif(Alias.FieldName < 0,RGB(255,0,0),RGB(0,0,0))","Column")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform