Home > database >  How to use dw_1. Modify () function to set the font color for a certain line column
How to use dw_1. Modify () function to set the font color for a certain line column

Time:10-14

How to use dw_1. Modify () function to set a certain line of font color


How to use dw_1. Modify () function to get behind the first line, M field, 43 Numbers in red, other unchanged

Help niche write code directly, thank you

CodePudding user response:

//assume that
String Columnname//M field name
String ls_exp
Long therow//as you need to change a line
Long ll_red ll_black=0//black
Ll_red=RGB (0, 255)

Ls_exp="~" 0 ~ t the if ((getrow ()="+ string (therow) +" and "+ Columnname +"=43), "+ string (ll_red) +", 0)
"
The Modify (" & lt; Columnname> Color="+ ls_exp)



CodePudding user response:

It almost forgot
Ls_exp="~" 0 ~ t the if ((getrow ()="+ string (therow) +" and "+ Columnname +"=43), "+ string (ll_red) +", 0) "+" ~ ""

CodePudding user response:

This can be used. Then consult warrior.

Statements do not judge, direct a column in a row to change color,,, as long as don't satisfy the wants much change color..

How do you write the code. The code above only for a time, instead more changed not.

CodePudding user response:

For I=1 to dw_1. Rowcount ()
If dw_1. GetItemnumber (I, "m") & gt; Inventory quantity then
Dw_1. Modify (m field font into red) how do you write the code
End the if
If dw_1. GetItemnumber (I, "L") & gt; Inventory quantity then
Dw_1. Modify (L field font into red)
End the if
Next
Niche cycle to judge of records, the lack of the number of multi-purpose color marked.
Some column (see color change a line:
http://bbs.csdn.net/topics/392031902
This change only one, can't change more.

CodePudding user response:

Instead of peers at the same time more, how to write

CodePudding user response:

The
reference 4 floor kghgep reply:
for I=1 to dw_1. Rowcount ()
If dw_1. GetItemnumber (I, "m") & gt; Inventory quantity then
Dw_1. Modify (m field font into red) how do you write the code
End the if
If dw_1. GetItemnumber (I, "L") & gt; Inventory quantity then
Dw_1. Modify (L field font into red)
End the if
Next
Niche cycle to judge of records, the lack of the number of multi-purpose color marked.
Some column (see color change a line:
http://bbs.csdn.net/topics/392031902
This change only one, can't change more.

Don't need to do cycle!
Ls_exp="~" 0 ~ t the if (m & gt; "+ string (stock) +", "+ string (ll_red) +", "+" ~ 0) ", "
Dw_1. Modify (" m.C olor="+ ls_exp)

CodePudding user response:

If just meet the specified conditions, you can use the if expression to set up the implementation, on the first floor of the said

If there are multiple, and the condition is bad to write, you can define a column color_id, then set the color_id values within the program

CodePudding user response:

The PB code modify a line a list of attributes, you first data window and an auxiliary field, and then the data window (do you want to change the COLOR of the field of COLOR, write an Expression in the Expression, (IF auxiliary field value=, the value of the assignment of your code to RGB (... ), RGB (... ))
Then the code you assigned to a line of auxiliary field values, line, Expression Expression control properties, the code is assigned to control judgment value,
  • Related