INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Sort results...  (Read 1307 times)

tommer

  • Recent member
  • *
  • Posts: 19
Sort results...
« on: April 20, 2006, 04:51:47 pm »

To be able to generate a list of songs within a album I've come up with following code (using Delphi):

  AudioPlAutObj:= MJAutomation1.GetPlaylists;
  AudioAutObj:=AudioPlAutObj.GetPlaylist(j).GetFiles;
  AudioAutObj.AlbumGroup(true,true);

  AlbumAutObj:= AudioAutObj.GetFile(i).GetAlbumFiles;

  for j := 0 to AlbumAutObj.GetNumberFiles -1 do
  begin
      song:=AlbumAutObj.Get(j,'Name');
      memo1.append(song);
  end

Is it somewhat possible to sort this list by track number directly, or do I have to create code to do this for me??
Logged
Pages: [1]   Go Up