Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.140 Beiträge
Delphi 12 Athens
|
AW: Propertys auf Klasse variabel ansprechen
19. Jul 2016, 14:42
Delphi-Quellcode:
fTabelle : Array[1..3] of String;
Property A1 : String index 1 read GetTabelle write SetTabelle;
Property A2 : String index 2 read GetTabelle write SetTabelle;
Property A3 : String index 3 read GetTabelle write SetTabelle;
Property A[Index: Integer] : String read GetTabelle write SetTabelle;
Die Signaturen der Getter und Setter sind hier identisch, also kann man Beides oder nur je eine Variante verwenden.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
Geändert von himitsu (19. Jul 2016 um 14:45 Uhr)
|