font.color change by Value
hi
I??m tryng to put to work the code below but nothing what is the problem?
Thanks
procedure MasterData4OnBeforePrint(Sender: TfrxComponent);
begin
if <Termografia_sub."GrauAnomalia">='1' then Termografia_subGrauAnomalia1.font.color:=clNavy
else if<Termografia_sub."GrauAnomalia">='2' then Termografia_subGrauAnomalia.font.color:=clMaroon
else if <Termografia_sub."GrauAnomalia">='3' then Termografia_subGrauAnomalia.font.color:=clRed
//else Termografia_subGrauAnomalia.font.color:=clNone
end;
I??m tryng to put to work the code below but nothing what is the problem?
Thanks
procedure MasterData4OnBeforePrint(Sender: TfrxComponent);
begin
if <Termografia_sub."GrauAnomalia">='1' then Termografia_subGrauAnomalia1.font.color:=clNavy
else if<Termografia_sub."GrauAnomalia">='2' then Termografia_subGrauAnomalia.font.color:=clMaroon
else if <Termografia_sub."GrauAnomalia">='3' then Termografia_subGrauAnomalia.font.color:=clRed
//else Termografia_subGrauAnomalia.font.color:=clNone
end;
Comments
BTW please don't double post
<!--fonto:Courier New--><span style='font-family: "Courier New"'><!--/fonto-->Termografia_subGrauAnomalia1.text := <Termografia_sub."GrauAnomalia">;<!--fontc--></span><!--/fontc-->
or
<!--fonto:Courier New--><span style='font-family: "Courier New"'><!--/fonto-->showmessage(<Termografia_sub."GrauAnomalia">);<!--fontc--></span><!--/fontc-->
to see what's the value