//首先为每个Edit设置不同的Tag值:
//如:Edit1.tag:=1;
//如:Edit2.tag:=2;
...
//如:Edit9.tag:=9;
for I:= 0 to ControlCount -1 do
begin
if Controls is TEdit then
begin
if (Controls as TEdit).Focused then
begin
case (Controls as TEdit).tag of
1:showmessage('Edit1 Focused.');
2:showmessage('Edit2 Focused.');
...
9:showmessage('Edit9 Focused.');
end;
end;