Information générale
Titre:
Error with DynamicForeColor in Grid
Hi,
I have a container class(sched1) & in this sched1 I have a grid(grid1). In the init() event of the sched1 I have the following code...
This.Grid1.SetAll("DynamicForeColor","IIF(RECNO('Temp')=This.p_RecNo,8388608,0)", "COLUMN")
This.Grid1.SetAll("DynamicBackColor","IIF(RECNO('Temp')=This.p_RecNo,12632256,16777215)", "COLUMN")
p_RecNo is the property which is initialize to 0.
I used this container class(sched1) in a form and ran it. I got error "Expression in invalid. Use a valid expression for DYNAMICFORECOLOR/DYNAMICBACKCOLOR property". Can some tell me why this error happened?
P.S. It works fine, if the code is in the init() of a Form.
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