Font attributes in a script
BJL
Brussels, Belgium
I need to print fields in bold or in normal according to the value of a field
begin
if ([dsR."TI"] = 1) then
begin
MemoCpte.Font.Style := fsBold;
...
end
else if ([dsR."TI"] = 0) then
begin
MemoCpte.Font.Style := 0;
...
end
end
The above script gives correctly the line in bold, but the next line is blank.
Replacing 0 by nil is not accepted.
[] is not accepted.
Saving the original style in a variable on the page.obp does not work.
Could you please indicate the way to come back to the normal style?
Thanks in advance.
BJL
begin
if ([dsR."TI"] = 1) then
begin
MemoCpte.Font.Style := fsBold;
...
end
else if ([dsR."TI"] = 0) then
begin
MemoCpte.Font.Style := 0;
...
end
end
The above script gives correctly the line in bold, but the next line is blank.
Replacing 0 by nil is not accepted.
[] is not accepted.
Saving the original style in a variable on the page.obp does not work.
Could you please indicate the way to come back to the normal style?
Thanks in advance.
BJL
Comments
I get the same problem. While the bold record is correctly printed, the next non bold shows only the 2 alphas fields, but the 7 numeric fields are blank.
BJL
Why these numbers are missing remain unsolved.
When setting font properties use fsRegular to go back to normal.