采用TList对象:
var
n: Integer;
Component_List: TList;
Temp_Component,P: TComponent;
begin
Component_List := TList.Create;
New (p);
p := TComponent (Your_Component);
Component_List.Add (p);
...
Temp_Component := Component_List.Items[n];
...
Component_List.Free;