L
LanzeServer
Unregistered / Unconfirmed
GUEST, unregistred user!
function form2.showwin():String;
begin
form2:=Tform2.create(Nil);
form2.ShowModal;
Result:=Edit1.text;
end;
form1.edit2.text:=form2.showwin();
出现如下错误
[Error] Unit2.pas(35): Undeclared identifier: 'edit1'
[Error] Unit2.pas(36): Statement expected, but expression of type 'Text' found
[Fatal Error] Unit1.pas(24): Could not compile used unit 'Unit2.pas'
begin
form2:=Tform2.create(Nil);
form2.ShowModal;
Result:=Edit1.text;
end;
form1.edit2.text:=form2.showwin();
出现如下错误
[Error] Unit2.pas(35): Undeclared identifier: 'edit1'
[Error] Unit2.pas(36): Statement expected, but expression of type 'Text' found
[Fatal Error] Unit1.pas(24): Could not compile used unit 'Unit2.pas'