I
ifall
Unregistered / Unconfirmed
GUEST, unregistred user!
如:
procedure TForm1.frxReport1BeforePrint(c: TfrxReportComponent);
var
t,p:tfrxmemoview;
begin
if c.name='Memo1' then
begin
t.memo.Text := 'FastReport1';
end;
if c.name='Memo2' then
begin
p.memo.Text := 'FastReport2';
end;
end;
这样就会出错,但如果去掉两个中间的任一句为memo赋值的语句,就正常了~~why??
procedure TForm1.frxReport1BeforePrint(c: TfrxReportComponent);
var
t,p:tfrxmemoview;
begin
if c.name='Memo1' then
begin
t.memo.Text := 'FastReport1';
end;
if c.name='Memo2' then
begin
p.memo.Text := 'FastReport2';
end;
end;
这样就会出错,但如果去掉两个中间的任一句为memo赋值的语句,就正常了~~why??