G
guopeng6789
Unregistered / Unconfirmed
GUEST, unregistred user!
我想把EDIT控件内容赋值给fastreport中的memo,提示错误
procedure TForm1.Button1Click(Sender: TObject);
begin
if frxReport1.FindObject('Memo1') <> nil then
begin
frxReport1.FindObject('Memo1').Memo.Clear;
frxReport1.FindObject('Memo1').Memo.Add(edit.text);
end;
frReport1.ShowReport;
end;
end.
提示错误:
[Error] Unit66666.pas(42): Undeclared identifier: 'Memo'
[Error] Unit66666.pas(43): Undeclared identifier: 'Memo'
[Error] Unit66666.pas(43): Missing operator or semicolon
[Error] Unit66666.pas(45): Declaration expected but identifier 'frReport1' found
问题出在什么地方啊
procedure TForm1.Button1Click(Sender: TObject);
begin
if frxReport1.FindObject('Memo1') <> nil then
begin
frxReport1.FindObject('Memo1').Memo.Clear;
frxReport1.FindObject('Memo1').Memo.Add(edit.text);
end;
frReport1.ShowReport;
end;
end.
提示错误:
[Error] Unit66666.pas(42): Undeclared identifier: 'Memo'
[Error] Unit66666.pas(43): Undeclared identifier: 'Memo'
[Error] Unit66666.pas(43): Missing operator or semicolon
[Error] Unit66666.pas(45): Declaration expected but identifier 'frReport1' found
问题出在什么地方啊