Home > database >  How to dynamically change the color of the column data window
How to dynamically change the color of the column data window

Time:09-17

I want to dynamically change the color of the column, so why not do so, please help solve, thank you

String ls_gzl='GZL, ls, ls_color
//GZL window column for the data of field name


Ls="0 ~ tif (" + ls_gzl +"='0, RGB (255255255), RGB (0, 0)') "



Ls_color=ls_gzl + "color=" + ls


If dw_2. Modify (ls_color)='then
Messagebox (' prompt ', 'color changing OK)
The else
Messagebox (' prompt ', 'color change NOT)
End the if

With the above statement why color can't change, and use the
Dw_2. Object. GZL. Color="0 ~ tif (GZL=0, RGB (255255255), the RGB (0, 0))" then you can change
Please directly, thank you

CodePudding user response:

String concatenation is wrong:

The end result is roughly like this:

String ls_mcolor
.
After a series of operations//ls_mcolor as "GZL. Color='0 ~ t the if (GZL=0, RGB (255255255), the RGB (0, 0))'"

Dw_modify (ls_mcolor)
  • Related