2
205Delphi
Unregistered / Unconfirmed
GUEST, unregistred user!
我声明了一个过程
procedure TForm1.paintform(var f: TForm);
var
j:TJpegImage;
begin
j:=TJPEGImage.Create;
j.LoadFromFile('e:/suck.jpg');
f.Canvas.StretchDraw(clientrect,j);
end;
在Button1调用这个过程
procedure TForm1.Button2Click(Sender: TObject);
begin
paintform(form1);
end;
提示错误信息:
Types of actual and formal var parameters must be identical
procedure TForm1.paintform(var f: TForm);
var
j:TJpegImage;
begin
j:=TJPEGImage.Create;
j.LoadFromFile('e:/suck.jpg');
f.Canvas.StretchDraw(clientrect,j);
end;
在Button1调用这个过程
procedure TForm1.Button2Click(Sender: TObject);
begin
paintform(form1);
end;
提示错误信息:
Types of actual and formal var parameters must be identical