quote:
Originally posted by Mnjul
Use InStr function:
If InStr(listFile2.SelectedItems(0).Text,".mp3")<>0 Then
blah blah blah
End If
When InStr returns 0, it means listFile2.SelectedItems(0).Text does not contain ".mp3".
I'd recommend using Right$() to get the last 3-4 characters and compare with that.
If it's filenames of course.