ISDBSongList::UpdateAll

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBSongList, Interface ISDBSongList

Sub UpdateAll


Method description

Updates database entries for all tracks in the list, i.e. writes any modifications back to DB. Also all tags are updated accordingly, but only if the option is turned on in the Options dialog (by default it is).

This (using UpdateAll on a SDBSongList object), is prefered over using the UpdateDB and WriteTags methods on a SDBSongList object, because it takes into account the user's preferences.

Example code

' Track refers to a SDBSongData Object for which you want to save changes to the database AND the file's tags (if set in the options)
Dim SL : Set SL = SDB.NewSongList
SL.Add Track
SL.UpdateAll

' This is prefered over:
'Track.UpdateDB
'Track.WriteTags           ' The user might not always want this!

Related Topics