>
>v_apptbookframe.ccolor_1 is char ie: 255,0,0
>
>It did not work.
>
>My code is:
>this.column2.dynamicbackcolor = ;
> "iif(.t., rgb(" + v_apptbookframe.ccolor_1 + " ),rgb(0,0,255))"
>
>Program did not bomb but the grid did not colorize. Any other suggestions??
>
>Thanx Neil
>DaDigiDoc@aol.com
Hi Neil,
Grid dynamic is interesting in that it doesn't bomb when you put an expression that would cause error normally. ie:
? iif(.t., rgb(0,0),1) && Error
? iif(.t., rgbc()) && Error
etc. Or it not necessarily be an error but expression doesn't evaluate to a valid color number. ie:
? "I'm here" && No error but char value
this.columns(1).dynamicbackcolor = "I'm here"
It doesn't bomb but simply color is not applied.
"iif(.t., rgb(" + v_apptbookframe.ccolor_1 + " ),rgb(0,0,255))"
style works. Debugout v_apptbookframe.ccolor_1 value to see if it's really error free rgb() triple representation (ie: "0,0,,0" is erroneous). And debugout
eval("iif(.t., rgb(" ;
+ v_apptbookframe.ccolor_1 ;
+ " ),rgb(0,0,255))")
to see if it really evaluates to a valid color number.
Cetin