Information générale
Titre:
SetAll with form property
When I run the following code from the form's Init(),
it works as expected:
thisform.grd_lvl2.SetAll("dynamicbackcolor",;
"IIF(table.field < 100,RGB(255,0,0),RGB(255,255,255))","Column")
However, when I try to check a form property or even a
variable like follows:
xxx = .T.
thisform.grd_lvl2.SetAll("dynamicbackcolor",;
"IIF(xxx=.T.,RGB(255,0,0),RGB(255,255,255))","Column")
I get the following error message:
Expression is Invalid. Use a valid expression
for DYNAMICBACKCOLOR property.
All I want to do is check that the user wants to see the
dynamic backcolor (thisform.turnoncolor = .T.) and the
table.field value is greater than 100.
What am I doing wrong?
Suivant
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