参考一下:
//
procedure ClearAllText();
var
i:Integer;
begin
For i:=0 to TabSheet1.ControlCount-1 do
begin
if (TabSheet1.Controls is TEdit) then
TEdit(TabSheet1.Controls).Text:='';
if (TabSheet1.Controls is TComboBoxEx) then
TComboBoxEx(TabSheet1.Controls).Text:='';
if (TabSheet1.Controls is TComboBox) then
TComboBox(TabSheet1.Controls).Text:='';
if (TabSheet1.Controls is TMemo) then
TMemo(TabSheet1.Controls).Text:='';
end;
end;