Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@Index not working like I thought it would...

May
855
0
As usual for me, some code:
Code:
  Iff %@Index[%Track,Movie and Television Soundtrack] GT -1 Then
     @Echo %@Index[%Track,Movie and Television Soundtrack] "%Track"
  EndIff
and its results:
Code:
   19 "Misc. Web Sources\(Movie and Television Soundtrack(s)\Glee\For the Longest Tim
    0 "Music.AllOfMP3.com\Abba\Number Ones\11 - Knowing Me, Knowing You.mp3"
    1 "Music.AllOfMP3.com\Abba\Number Ones\17 - I Do, I Do, I Do, I Do, I Do.mp3"
    0 "Music.AllOfMP3.com\Crosby, Stills, Nash (and Young)\Daylight Again\02 - Wasted
   ...
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Last Action Hero\07 - Dream O
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond

I admit what's going on here escapes me.
 
It's the commas in the track names. You need to quote the names (and the retuned indices will then be 1 higher than before).
 
Thank you, Ben. I thought they were quoted. But looking at the sample data (in my first posting) it appears that you may be correct.
 

Similar threads

Back
Top