Information générale
Catégorie:
Codage, syntaxe et commandes
>>I'm trying to utilize the .DynamicFore (and Back) Color properties of a grid. If my IIF statement contains the RGB() funtion, things work fine. Example: IIF(something = something, RGB(255,255,255), RGB(0,0,0))
>>
>>I'd like to make it more generic by using a variable to enter the coloring but I always get an "Invalid expression in the Dynamic...."
>>The variable is a property of the grid and the something = something is properly evaluated as they are properties of the grid too.
>>
>>THIS.gnForeColor = some valid color value
>>
>>Example: IIF(something = something, THIS.gnForeColor, ........
>>
>>Any ideas? Thanks.
>>
>>Steve Despres
>Steve,
>
>Have you given this property a valid value in the property sheet for the grid. The default value for a custom propety is .F. and that would give you the error you are getting.
Jim,
Yup, it's set to 0 in the property sheet and it's reset to a color value just prior to issuing the like the example above.
Steve
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement