change font style
I am intented to change the font style but ERROR in this script
what is it the problem???
thanks
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
      If <frxDBDatasetInforme."ACTIVO"> = 0 then
      begin
              Memo37.Font.Style := [fsStrikeOut];
      end
      else
      begin
              Memo37.Font.Style := []; Â
      end;
end;
what is it the problem???
thanks
Comments
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
If <frxDBDatasetInforme."ACTIVO"> = 0 then
begin
Memo37.Font.Style := 3;
end
else
begin
Memo37.Font.Style := 0;
end;
end;
I hope this code is useful for you.
do not use [] these delimiters are for use inside the memoview objects they trigger the expression evaluator to get the value of the expression
simply font.style := fsbold; or ie font.style := fsbold + fsunderline; will do
to clear font.style := 0;