0
'language = Visual Basic 6

Public Sub CreatePlayList(ByRef songs() As String, ByVal name As String)

    Dim i As Integer

        Set listCollection = frmMusic.wmplay.playlistCollection
        
        Set list = listCollection.newPlaylist(name)
        
        frmMusic.wmplay.currentPlaylist = list

        For i = 0 To UBound(songs)
            Set wmpMedia = frmMusic.wmplay.newMedia(songs(i))
            frmMusic.wmplay.currentPlaylist.appendItem wmpMedia
        Next
 
End Sub
' I believe the above code will take my song array and create a playlist with
'the value of 'name'.

'Normally I play a single song with code similar to [wmplay.url = filename]
'Now that I have created a playlist, how do I play it?
'Thank you,
'Paul
1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by paul1145
0
OK, I'm stupid, I forgot the .controls.play (duh)

Please close this thread (or tell me how)

Thanks for viewing my code.
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.