Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help for .SetAll in a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00690429
Message ID:
00690452
Vues:
14
>Hi all...
>I understand the use of .SetAll in a grid in the event that I need to change the color of a column based on a condition for example I put in Form.Init:
>ThisForm.libro1.Page1.Highlighted1.SetAll("DynamicForeColor",;
> "IIF(DVALE.Actividad <> '900207', RGB(0,0,0), RGB(0,183,0))", "Column") &&900207 verde
>I have A Grid With several columns one is DVALE.Actividad and other is DVALE.Valort. I need to turn green the lines that DVALE.Actividad ="900207" and it works fine. But aditionally I want to change that lines to red if DVALE.Valort < 0 so I put this aditional instruction in the form.Init:
>ThisForm.libro1.Page1.Highlighted1.SetAll("DynamicForeColor",;
> "IIF(DVALE.Valort >= 0, RGB(0,0,0), RGB(255,0,0))", "Column") &&Valor < = rojo
>This way doesn´t work.
>
>Any advice ?
>Thanks
>Juan Uribe

Your second .SetAll call overrides the first one. You have to combine both conditions in one nested IIF and call .SetAll just once.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform