dantheinfoman
Programmer
Hi All,
I'm currently storing colors to a field that is numeric using GETCOLOR(). All references to DynamicBackColor talk about using RGB() function. I can't seem to get the actual colorCode to work in the same manner. Does anyone know if this is possible. Here's what I'm trying to no avail:
Thanks for any help!
Dan
I'm currently storing colors to a field that is numeric using GETCOLOR(). All references to DynamicBackColor talk about using RGB() function. I can't seem to get the actual colorCode to work in the same manner. Does anyone know if this is possible. Here's what I'm trying to no avail:
Code:
SET STEP ON
IF !EMPTY(tk_cntr2.earlycolor)
PUBLIC m.earlycolor
m.earlycolor= tk_cntr2.earlycolor &&eg 255 for red
THISFORM.grid1.dtin.DynamicBackColor = "iif(ttsched.EarlyArriv=1 or ttsched.LateArriv=1, m.earlycolor,rgb(255,255,255)"
ENDIF
IF !EMPTY(tk_cntr2.latecolor)
PUBLIC m.latecolor
m.latecolor = tk_cntr2.latecolor
THISFORM.grid1.dtou.DynamicBackColor = "iif(ttsched.EarlyDepar=1 or ttsched.LateDepar=1, m.latecolor,rgb(255,255,255)"
ENDIF
Thanks for any help!
Dan