Einzelnen Beitrag anzeigen

lkz633

Registriert seit: 9. Jun 2002
Ort: Aachen
221 Beiträge
 
#19

Re: Komponenten-Entwicklung: xyz[i].name

  Alt 17. Jan 2004, 18:13
Aber dann kann ich doch immer noch nicht contacts.count machen oder?

Hier mein Code(mehr hab ich seit 3 Stunden nicht zustandegebracht )

Code:
type tcontactitem = class
  private
    Fname: string;
  public
    property name: string read Fname write Fname;
end;


type
  Toutextract = class(TComponent)
  private
    FList : TList;
    function Getcontacts(Index: Integer): TContactItem;
    function GetCount: Integer;
    procedure Setcontacts(Index: Integer; const Value: TContactItem);
  public
    constructor create(AOwner: TComponent); override;
    destructor destroy;override;
    property contacts[Index : Integer]: TContactItem read Getcontacts write Setcontacts; default;
    property Count : Integer read GetCount;
   end;
  Mit Zitat antworten Zitat