Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp Technical Support (http://forums.winamp.com/forumdisplay.php?f=11)
-   -   System.getPlaylistLength() inccorect in PeListener.onPleditModified () (http://forums.winamp.com/showthread.php?t=289723)

clementj 5th April 2008 22:02

System.getPlaylistLength() inccorect in PeListener.onPleditModified ()
 
When you trap changes in the playlist using
PeListener.onPleditModified ()

and a track is inserted in the middle of the list

System.getPlaylistLength() returns the index of the inserted track rather than the number of tracks.

I would like to use onPleditModified, but this error poses difficulties. There should be a separate functionality to find out where track(s) have been inserted or deleted.

do the standard suggested initialization in pldir
Try:


PeListener.onPleditModified (){
int ccount = System.getPlaylistLength();
string notanymore_id;
System.messageBox(integertoString(ccount),currentname, 0, notanymore_id);
}


All times are GMT. The time now is 03:14.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.