Forum Discussion
CBleunven
12 years agoContributor
Hi Kumar,
first, I don't understand what you get with this function:
var ULEditBoxObj = getBackGrounddColorObj();
Is this function get the Parent Object of the textBox of interest ? If Yes, I guess the name is not appropriate.
second, you don't have to go under the BackColor Properties to get the BackColor of the textBox.
var ULColor = ULEditBoxObj1.BackColor;
By going below, you go to get the static DarkGreen color. as, I'm not sure you can get the DarkGreenColor with this:
I will use
var darkGreenColor == ULColor.DarkGreen ;
to get the static DarkGreen color (it is may be not the most elegant solution).
Finnaly, at this step I'm not sure you can use.
if (darkGreenColor == ULColor)
I guess you need to use the native Equals method
if (darkGreenColor.Equals(ULColor))
Christophe
first, I don't understand what you get with this function:
var ULEditBoxObj = getBackGrounddColorObj();
Is this function get the Parent Object of the textBox of interest ? If Yes, I guess the name is not appropriate.
second, you don't have to go under the BackColor Properties to get the BackColor of the textBox.
var ULColor = ULEditBoxObj1.BackColor;
By going below, you go to get the static DarkGreen color. as, I'm not sure you can get the DarkGreenColor with this:
var color = BuiltIn.clGreen;// Green color value(255)
I will use
var darkGreenColor == ULColor.DarkGreen ;
to get the static DarkGreen color (it is may be not the most elegant solution).
Finnaly, at this step I'm not sure you can use.
if (darkGreenColor == ULColor)
I guess you need to use the native Equals method
if (darkGreenColor.Equals(ULColor))
Christophe
Related Content
- 5 years ago
- 9 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago