//使用
for I := 0 to LabelList.Count - 1 do
begin
TLabel(LabelList.Items[I]).Caption := IntToStr(I);
end;
//最后在FormClose的时候需要 : FreeAndNil(LabelList);
end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
FreeAndNil(LabelList);
end;
end. 作者:
Nothing 时间: 2005-9-13 19:46