Einzelnen Beitrag anzeigen

Bernd29bln

Registriert seit: 28. Feb 2005
Ort: Berlin
281 Beiträge
 
Delphi 7 Professional
 
#13

Re: Listbox Item und Listview???

  Alt 3. Apr 2005, 10:56
also so sieht es aus.

Delphi-Quellcode:

procedure TMainForm.Player1Close(Sender: TObject);
begin
   { the files was done... }

   { we should stop playing ! }
   if Stopping then exit;


   { other files to play ??? }
   if PlayIndex < ListView1.Items.Count then
   begin
      { set the next file }
      MpegFile.FileName := ListView1.Items.Item[PlayIndex];// Hier wird der Fehler Sein
      { update the ListView }
      ListView1.ItemIndex := PlayIndex;
      inc(PlayIndex);
        SetFileParams;
      Player1.Start;
   end;
end;
gruss
Bernd
  Mit Zitat antworten Zitat