Registriert seit: 7. Jan 2008
Ort: Baden Württemberg- Hohenlohekreis
174 Beiträge
RAD-Studio 2009 Arc
|
Re: denkfehler; array-> dynarray
10. Jan 2009, 16:32
wie schreib ich da den type? mit den properties= so vllt?
Delphi-Quellcode:
type
TViecher = class(TCollectionitem)
protected
function GetViech(Index: Integer): TViech;
procedure SetViech(Index: Integer; Value: TViech);
public
function Add: TViech;
function Insert(Index: Integer) : TViech;
property Viech[Index: Integer]: TViech read GetViech write SetViech; default;
end;
...
type
TViechergruppe = class(TCollection)
protected
function GetViecher(Index: Integer): TViecher;
procedure SetViecher(Index: Integer; Value: TViecher);
public
function Add: TViecher;
function Insert(Index: Integer) : TViecher;
property Viecher[Index: Integer]: TViech read GetViecher write SetViecher; default;
end;
Volker ~beware
Wizards First Rule:
People are stupid; given proper motivation, almost anyone will believe almost anything. Because people are stupid, they will believe a lie because they want to believe it’s true, or because they are afraid it might be true
|