I use this code for emptying fill in the form :
var
i: integer;
for i:=0 to componentcounts-1 do
begin
if component[i] is TEdit then
(component[i] as Tedit).text:='';
.....another component also include
end;
but i prefer use this code outside the form, so that can be use by another form
then i create a procedure
procedure emptyForm(f:Tform)
var
i:integer;
begin
with f do
begin
for i:=0 to componentcounts-1 do
begin
if component[i] is TEdit then
(component[i] as Tedit).text:='';
//.....another component also include
end;
end;
end;
its save do this way ?