From MediaMonkey Wiki
Revision as of 21:04, 11 October 2011 by Steegy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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

Related Topics