by Phik » Sat Oct 24, 2009 6:53 pm
Hey, im new here, so thanks for putting up with any dumb questions that may pop up... i've been making a program to allow me to control my music on my desktop with my laptop, but im having some trouble with player.playlistaddtracks object. ive created a songlist object and populated it with a song query. but here's the kicker. when i got to put a new playlist in the now playing with the player.playlistaddtracks, it goes "object doesnt support this property or method".
here's the code im using:
Code: Select all
Dim i As Integer
Dim search As String
Set list = SDB.NewSongList
ReDim songs(0)
search = "'" & artists(artistList.ListIndex + 1) & "'"
Set iterSong = SDB.Database.QuerySongs("Artist = " & search)
SDB.player.playlistclear
Do While Not iterSong.EOF
list.Add (iterSong.Item)
iterSong.Next
Loop
SDB.player.PlaylistAddTracks (list) 'this is in a different function, hence why i just dont populate the playlist in the while loop.
its got me righty baffled...
ive been programming for a while, but this is really the first time i've used the MM object and i've been using the Wiki extensivly, but that doesnt shed any light on my problem...
thanks for you help

Hey, im new here, so thanks for putting up with any dumb questions that may pop up... i've been making a program to allow me to control my music on my desktop with my laptop, but im having some trouble with player.playlistaddtracks object. ive created a songlist object and populated it with a song query. but here's the kicker. when i got to put a new playlist in the now playing with the player.playlistaddtracks, it goes "object doesnt support this property or method".
here's the code im using:
[code]
Dim i As Integer
Dim search As String
Set list = SDB.NewSongList
ReDim songs(0)
search = "'" & artists(artistList.ListIndex + 1) & "'"
Set iterSong = SDB.Database.QuerySongs("Artist = " & search)
SDB.player.playlistclear
Do While Not iterSong.EOF
list.Add (iterSong.Item)
iterSong.Next
Loop
SDB.player.PlaylistAddTracks (list) 'this is in a different function, hence why i just dont populate the playlist in the while loop.
[/code]
its got me righty baffled...
ive been programming for a while, but this is really the first time i've used the MM object and i've been using the Wiki extensivly, but that doesnt shed any light on my problem...
thanks for you help :D