procedure Empty(A, B, C, D: TEdit;E:TMemo); stdcall;
begin
if A<>nil then A.Text := '';
if B<>nil then B.Text := '';
if C<>nil then C.Text := '';
if D<>nil then D.Text := '';
if E<>nil then E.Text := '';
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
empty(Edit1, Edit2,Edit3 ,NIL ,memo1);
end;
empty(Edit1, Edit2,Edit3 , ,memo1);
调用有问题
procedure Empty(A: array of TCustomEdit); stdcall;
var
i : Integer;
begin
for i := Low(A) to High(A) do
A[i].Text := '';
end;