Here are two color variables assigned to the value;
ls_color_1 = string (RGB (255,255,255))
ls_color_2 = string (15780518)//Here Set the selected cell to Sky sky blue
Gets the current column number and the total number of columns here;
Ll_curcol=dw_1.getcolumn ()
Ls_curcol = Left (Dw_1.getobjectatpointer (), POS (Dw_1.getobjectatpointer (), "~t")-1)
Ll_cols = Long (Dw_1.Object.DataWindow.Column.Count)
This sets the background mode property of all columns to opaque; (Note: The following two sentences can actually be executed in the form's Open event or in the constructor of the DW to improve efficiency;)
Dw_1.setredraw (False)
For ll_pos = 1 to Ll_cols
Ls_colname = Dw_1.describe ("#" +string (Ll_pos) + ". Name ")
The Background.color property of the Action column is set here as an expression with an if judgment, while the background expressions for the columns in addition are set to constant values;
For ll_pos = 1 to Ll_cols
Ls_colname = Dw_1.describe ("#" +string (Ll_pos) + ". Name ")
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.