JoeyBoy
|
| Posted: 11/19/2004, 8:01 AM |
|
REading the manual and searching thif forum, I found the procedure to change the label color based in its value, its work fine when the value is text, but when its float (number) the label just dissapear.
This is my code, in the beforeShow event of the Label:
If Payment.DocTotal.Value < 0 then
Payment.DocTotal.Value = "<font color=RED>"& Payment.DocTotal.Value &"</font>"
else
end if
the label is set to HTML, as the manual sez....
|
|
|
 |
DonB
|
| Posted: 11/19/2004, 10:21 AM |
|
You must ensure the datatype of the source column matches the datatype of
the Label. Did you do that?
--
DonB
http://www.gotodon.com/ccbth
"JoeyBoy" <JoeyBoy@forum.codecharge> wrote in message
news:6419e18eb057d0@news.codecharge.com...
> REading the manual and searching thif forum, I found the procedure to
change the
> label color based in its value, its work fine when the value is text, but
when
> its float (number) the label just dissapear.
>
> This is my code, in the beforeShow event of the Label:
>
> If Payment.DocTotal.Value < 0 then
> Payment.DocTotal.Value = "<font color=RED>"& Payment.DocTotal.Value
> &"</font>"
> else
>
> end if
>
> the label is set to HTML, as the manual sez....
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|