This way the song list's internal structures aren't properly initialized. Currently there isn't a way around it, always when you need a songlist you have to get it from some function. I'm not sure why exactly do you need it, but I suppose it might be needed sometimes and so I'll add a funciton for this for the next release.
jiri wrote:
I'm not sure why exactly do you need it, but I suppose it might be needed sometimes and so I'll add a funciton for this for the next release.
Jiri
Thanks Jiri, that would be fine
I needed it for a script which selectes either the selected files or the Player.CurrentSong and because Player.CurrentSong isn't a SongList I wanted to create a SongList with 1 Entry - so I wouldn't have to change the rest of the script.
I worked around with an array.
Last edited by onkel_enno on Mon Jul 11, 2005 3:47 am, edited 1 time in total.
Dim d ' Create a variable.
Set d = CreateObject("Scripting.Dictionary")
d.Add "a", "Athens" ' Add some keys and items.
d.Add "b", "Belgrade"
d.Add "c", "Cairo"
...
Maybe jirij could use the Dictionary object instead of using his own list object. would be easier as he doesn't have to implement his own list object. The dictionary could consist of PLayListItem objects.
jiri wrote:I'm not sure why exactly do you need it, but I suppose it might be needed sometimes and so I'll add a funciton for this for the next release.
Jiri
Was there something done? I could need it again and can't find a way around it (need a Songlist of all Tracks in Library).