用TCollectionItem和TCollection,它们可以进行存储。Delphi的Toolbar,TStatusBar都是这样。
解决方案 »
- 如何用一个TIMER检测当前鼠标是否还在form范围内
- 招杭州地区兼职软件开发工程师(delphi,用其他开发工具的勿扰)
- 如何判断Apache已经启动?
- 高手在吗:delphi5在XP下装载DLL文件后就不能单步跟踪调试,在win2000下没有问题.
- 在delphi中如何建立SQL server 2000的数据库,如何建立表
- 请教:在用QRCHART时遇到的一个小问题
- C/S?
- 如何连续赋值?
- 即时通讯系统( 仿OICQ ) 提供下载
- 请问如何在98客户端遍历NT/2000服务器下的目录??????
- LISTBOX最大允许的ITEMS数是多少
- 怎样用DELPHI编程,实现检测win2000/win98系统中哪些应用程序或进程,已经死了或没有响应。
private
FList: TStringList;
function GetItem(index: Integer): String;
procedure SetItem(index: Integer; const Value: String);
function GetCount: Integer; public
property Count: Integer read GetCount; // 数目
property Items[index: Integer]: String read GetItem Write SetItem;function TForm1.GetCount: Integer;
begin
Result := FList.Count;
end;function TForm1.GetItem(index: Integer): String;
begin
Result := FList[index];
end;procedure TForm1.SetItem(index: Integer; const Value: String);
begin
Assert( index<=FList.Count ); // 最多为比数目大一个
if index=FList.Count then
FList.Add( Value ) // 如果比数目多一个,就增加
else
FList[index] := Value;
end;