Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.184 Beiträge
Delphi 12 Athens
|
Re: Frage zu Array in Eigener Klasse
21. Mai 2009, 09:33
das ginge z.B. so:
Delphi-Quellcode:
Private
Function GetWhazzup(Index: Integer): Whazzup;
Procedure SetWhazzup(Index: Integer; Const Value: Whazzup);
Public
Property Whazzup[Index: Integer]: TWhazzupData Read GetWhazzup Write SetWhazzup;
also
Delphi-Quellcode:
Private
Function GetArrayProp(Param1, Param2, ...): Type;
Procedure SetArrayProp(Param1, Param2, ..., Type);
Public
Property ArrayProp[Param1, Param2, ...]: Type Read GetArrayProp Write SetArrayProp;
$2B or not $2B
|
|
Zitat
|