Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the backcolor in a Grid
Message
De
09/01/2002 17:20:05
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
À
09/01/2002 17:03:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00602300
Message ID:
00602719
Vues:
23
>Hello Ravi.
>
>I just tried this code but got the following VFP message:
>
>"Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR property"

>
>As an alternative to entering this into the DynamicBackColor for each column in the property sheet, this code in the grid's Init works:
>
>
>LOCAL lcBackColor
>FOR EACH loColumn IN This.Columns
>  IF loColumn.ColumnOrder > 1
>    IF TYPE( loColumn.ControlSource ) = 'C'
>	lcBackColor = "IIF( 'BLOCK' $ " + loColumn.ControlSource + ", RGB( 255, 0, 0 ), RGB( 0, 0, 255 ) )"
>        loColumn.DynamicBackColor = lcBackColor
>    ENDIF
>  ENDIF
>ENDFOR
>
Thanks again Marcia. Appreciate it.

- Ravi
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform