Einzelnen Beitrag anzeigen

Benutzerbild von Meflin
Meflin

Registriert seit: 21. Aug 2003
4.856 Beiträge
 
#2

Re: Property für Element eines Arrays

  Alt 4. Mai 2009, 09:34
naja gehn wirds schon, aber wozu soll das gut sein?
Delphi-Quellcode:
private
  function GetElement: string;
public
  property MyStrings: TStringList read GetElement;

...

function MyClass.GetElement: string;
begin
  result := FMyStrings[1];
end;
  Mit Zitat antworten Zitat