Einzelnen Beitrag anzeigen

lkz633

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

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

  Alt 17. Jan 2004, 17:54
Danke für deine Hilfe, hier mal der Source:

Code:
type tcontactitem = class
  private
    Fname: string;
    procedure Setname(const Value: string);
  public
    property name: string read Fname write Setname;
end;


type tContactItemList = class(TList)
  private
    function GetItems(Index: Integer): tcontactitem;
    procedure SetItems(Index: Integer; const Value: tcontactitem);
  public
    property Items[Index : Integer]: tcontactitem read GetItems write SetItems;default;
end;


type
  Toutextract = class(TComponent)
  private
    procedure SetOutlookVersion(const Value: outlookversion);
    function Getcontacts(Index: Integer): TContactItemlist;
    procedure Setcontacts(Index: Integer; const Value: TContactItemlist);
  protected
  public
    constructor create(AOwner: TComponent); override;
    destructor destroy;
    property contacts[Index : Integer]: TContactItemList read Getcontacts write Setcontacts;
  end;
  Mit Zitat antworten Zitat