Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
RAP
New Blog Posts: Merging Reports -
Part 1
and
Part 2
ReportBuilder 22.05 now available!
change the font color of a variable
rbuser
April 2003
edited April 2003
in
RAP
Hi,
How can I chage the font color of a variable? and what it?s the event that I
must to use?
I want to change the color of a variable depending tha value of that
variable
Comments
digitalmetaphors
April 2003
edited April 2003
Use the Variable's OnCalc event, as it fires early enough to perform this
operation. I coded this in the main RAP demo #12 by adding a variable to the
detail and coding the OnCalc:
begin
Value := plStock['Price_Chg'];
if Value > 0 then
Variable1.Font.Color := clBlack
else
Variable1.Font.Color := clRed;
end;
Cheers,
Jim Bennett
Digital Metaphors
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
rbuser
April 2003
edited April 2003
Thanks
This discussion has been closed.
Comments
operation. I coded this in the main RAP demo #12 by adding a variable to the
detail and coding the OnCalc:
begin
Value := plStock['Price_Chg'];
if Value > 0 then
Variable1.Font.Color := clBlack
else
Variable1.Font.Color := clRed;
end;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com