如何使用Digital-Metaphors Report Builder RAP在计算字段中设置字体属性

时间:2009-12-18 21:25:18

标签: delphi reportbuilder

我正在尝试使用RAP在Digital-Metaphors Report Builder中的变量中设置字体属性。我正在使用的代码是:

if (DBdetail['LINEATTR']='1') then begin
    budgetValue.font.style:=[fsBold];
end;

但这不起作用,我得到编译时错误。如何设置字体样式?

1 个答案:

答案 0 :(得分:4)

RAP的语法是

Label.Font.Bold:= True;

RAP不支持'set'类型。