X
xy_c
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure Tform1.showff(var key:integer);
begin
if key=1 then
showmessage('FFFFFFFFFFFFFFFFFFFFFFF');
if key='p' then
showmessage('fdddfd');
end;
procedure TForm1.DBGrid1EditButtonClick(Sender: TObject);
begin
showmessage('ffffffffffffff');
end;
然后在编译时提示"Types of actual and formal var parameters must be identical"错误,请问为什么?
begin
if key=1 then
showmessage('FFFFFFFFFFFFFFFFFFFFFFF');
if key='p' then
showmessage('fdddfd');
end;
procedure TForm1.DBGrid1EditButtonClick(Sender: TObject);
begin
showmessage('ffffffffffffff');
end;
然后在编译时提示"Types of actual and formal var parameters must be identical"错误,请问为什么?