ISDBApplication::PlaylistByTitle

From MediaMonkey Wiki
Revision as of 13:37, 21 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CoClass SDBApplication, Interface ISDBApplication

Property Get PlaylistByTitle(Title As String) As ISDBPlaylist


Parameters

Name Type Description
Title String Name of the playlist to get (use "" to get root of all playlists)


Property description

Retrieves SDBPlaylist object of the given playlist name. Probably most often used parameter is an empty string, the root (virtual) playlist node is returned then, you can use its ChildPlaylists property to get all the first level playlists.

Example code

Set Playlist = SDB.PlaylistByTitle( "")
Set list = Playlist.ChildPlaylists

For i=0 To list.count-1
  Set itm = list.Item(i)
  fout.WriteLine itm.Title & " (" & CStr(itm.ChildPlaylists.Count) & "/" & CStr( itm.Tracks.Count) & ")"
Next