2,507
社区成员




TSelectItems = class(TPersistent)
private
FData: TStringList;
FCount: integer;
function GetItems(Index: Integer): TSeat;
function GetCount: Integer;
public
property Items[Index: Integer]: TSeat read GetItems;
constructor Create;
destructor Destroy; override;
published
property Count: Integer read GetCount;
end;
SelectItems :TSelectItems;
我不能这样调用:SelectItems[0]或SelectItems[1] ,而只能SelectItems.Items[0],我的目的就是要像TStringList一样,可以StringList[0]