Hola:
Yo siempre utilizo Try...Except, no sé para que sirve el raise..alguien sabe??
Código Delphi
[-]
procedure TFrmTag.btnAplicarClick(Sender: TObject);
var
cont,i : Integer;
begin
cont := FrmArchivos.LstBoxFile.Items.Count;
for i := 0 to cont - 1 do
if FrmArchivos.LstBoxFile.Selected[i] = True then
try
begin
FrmPowerM.mp3Tag.Title := edtTitulo.Text;
FrmPowerM.mp3Tag.artist := edtArtista.Text;
FrmPowerM.mp3Tag.Album := edtAlbum.Text;
FrmPowerM.mp3Tag.Genre := edtGenero.Text;
FrmPowerM.mp3Tag.Year := edtAno.Text;
FrmPowerM.mp3Tag.SaveTagToFile(FrmArchivos.LstBoxFile.Items.Strings[i]);
end
except
ShowMessage('Para cambiar el tag de un archivo,éste no debe estar ejecutandose');
end;
end;
Saludos y hasta pronto..