General information
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only