Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicBackColor problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00064079
Message ID:
00064363
Vues:
43
>>To get the effect you are looking for, type this (exactly) in the grid's init:
>>this.SetAll("DynamicBackColor", "IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255) , RGB(0,255,0))", "Column")
>
>Erik... thanks but I want to change the row colour based on the value in column 1 not every second line.

Erik, simply change the function "MOD(Recno(),2)=0" to anything you want. Try with some simple item like "This.column1.text1.value = 4", then upgrade it. You can even use a UDF here, where the UDF contains a case statement about the values. I've used this to track values above or below certain limits.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform