Einzelnen Beitrag anzeigen

omata

Registriert seit: 26. Aug 2004
Ort: Nebel auf Amrum
3.154 Beiträge
 
Delphi 7 Enterprise
 
#8

Re: TPlaylist neue Komponente!

  Alt 15. Aug 2006, 19:15
So müsste es gehen...

Delphi-Quellcode:
type
  TTracks = record
    Title: String;
    time: String;
    path: String;
  end;
:
  private
    { Private-Deklarationen }
    function GetTracks(index: Integer): TTracks;
:
  public
    { Public-Deklarationen }
    property Track[index:integer]:TTracks read GetTracks;
:
function TPlaylist.GetTracks (index: Integer): TTracks;
begin
  Result.Title:= cells[1, index];
  Result.time := cells[2, index];
  Result.path := cells[4, index];
end;
Gruss
Thorsten
  Mit Zitat antworten Zitat