t := Self.FindObject('Memo18');
if t = null then
begin
Memo18.FillColor := clBlue;
Memo18.memo := '没找到';
end
else
begin
Memo18.FillColor := clRed;
Memo18.memo := '找到了';
end;
好象测试通过~~~~~~~~
FR 对象并不是一个组件. 但使用 TfrReport.FindObject 方法可以通过对象名称找到该对象。
var
t: TfrMemoView;
begin
t := TfrMemoView(frReport1.FindObject(‘Memo1‘));
if t <> nil then
t.Memo.Text := ‘FastReport‘;
end;