Difference between revisions of "ISDBApplicationEvents::OnPlaylistAdded"

From MediaMonkey Wiki
Jump to: navigation, search
(Created page with "===Parameters=== {{MethodParameters |Playlist |SDBPlaylist |Newly created library playlist.}} ===Event description=== This event is called when a new playlist is added t...")
 
(No difference)

Latest revision as of 19:50, 15 July 2013

Parameters

Name Type Description
Playlist SDBPlaylist Newly created library playlist.


Event description

This event is called when a new playlist is added to Library.

Example code

Sub OnStartUp()
  Script.RegisterEvent SDB, "OnPlaylistChanged", "PlaylistChanged"
  Script.RegisterEvent SDB, "OnPlaylistAdded", "PlaylistAdded"
  Script.RegisterEvent SDB, "OnPlaylistRemoved", "PlaylistRemoved"    
End Sub

Sub PlaylistChanged( Playlist)
 msgbox "Changed playlist " + Playlist.Title
End Sub

Sub PlaylistAdded( Playlist)
 msgbox "Added playlist " + Playlist.Title
End Sub

Sub PlaylistRemoved( Playlist)
 msgbox "Removed playlist " + Playlist.Title
End Sub