JBalcerzak
Programmer
I've got a combo box on a form which is populated from one table and stores the value in another. I've also got a label on my form which I would like to change forecolor based on the value of the combo. In the refresh method of the label I've got the following
do case
case products.status = 0
this.forecolor = rgb(0,0,0)
case products.status = 1
this.forecolor = rgb(0,128,0)
etc, etc.
otherwise
this.forecolor = rgb(x,x,x)
endcase
I'm calling the form refresh method (i.e. thisform.refresh() ) from the interactive change method of the combo box. However, my label isn't changing color - shouldn't the form refresh method fire the refresh methods of all the child controls? I could change the color directly from the interactive change method but I want the label to update the color when the form is loaded as well if the data is already set. Any ideas?
do case
case products.status = 0
this.forecolor = rgb(0,0,0)
case products.status = 1
this.forecolor = rgb(0,128,0)
etc, etc.
otherwise
this.forecolor = rgb(x,x,x)
endcase
I'm calling the form refresh method (i.e. thisform.refresh() ) from the interactive change method of the combo box. However, my label isn't changing color - shouldn't the form refresh method fire the refresh methods of all the child controls? I could change the color directly from the interactive change method but I want the label to update the color when the form is loaded as well if the data is already set. Any ideas?