Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid rows
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00146863
Message ID:
00146910
Vues:
23
>In a grid's init, why does this work:
>
>THIS.Column2.DynamicForeColor=;"IIF(table.logical,RGB(255,0,0),RGB(0,0,0))"
>(which is taken straight from the developer's guide)
>
>and this doesn't:
>
>THIS.Column2.Enabled=IIF(table.logical,.T.,.F.)
>
>Kevin Payne

Kevin,

Because;

1) DynamicForeColor is a dynamic property whose expression is evaluated for each row and Enables is not dynamic.

2) The expression you assign to the dynamicforecolor is "IIF(...)" while the assignment to Enmabled is the result of the IIF() function being evaluated.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform