Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic forecolor problem - VFP 8.0 grid
Message
De
03/06/2003 14:54:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00795076
Message ID:
00795844
Vues:
89
Hi Nancy.

As you can see I had to change this.value to a function call where I passed the field name like you suggested.

thisform.grid1.SetAll("DynamicForeColor", "f_color(sex)", "Column")


You are making this much more difficult than it needs to be < s >. I assume that the grid's RecordSource has a field in it named 'Sex'. Let us assume that the RecordSource is pulls its data from an Alias called 'MyAlias'. Just put this expression in the DynamicForeColor property of the column that has MyAlias.Sex as its ControlSource:

IIF( ALLTRIM( MyAlias.Sex ) == 'Female', RGB( 255, 0, 0 ), RGB( 0, 0, 0 ) )
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform