Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with DynamicForeColor in Grid
Message
From
16/02/2003 01:55:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Error with DynamicForeColor in Grid
Miscellaneous
Thread ID:
00753833
Message ID:
00753833
Views:
100
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
Map
View

Click here to load this message in the networking platform