对不起,写错了
var i:integer;
b:boolean;
begin
b:=true;
for i:=0 to ComponentCount-1 do
begin
if Components.ClassType=Tedit then
if (Components as Tedit).Text='' then b:=false;
if Components.ClassType=Tcombobox then
if (Components as Tcombobox).Text='' then b:=false;
end;
if b then ..........//判断之后在进行其他工作
end;