From MediaMonkey Wiki
Jump to: navigation, search

CoClass SDBSongData, Interface ISDBSongData

Property Get Artist As ISDBArtist

Property description

Returns SDBArtist object of this track.

Scripting Object SDBSongData
Value Name Artist
Value Type Object
Database Table Artists
Field Name See Members
Field Type Text
Members SDBArtist

Example Code

Complete script


  For iCounter = 0 to objSongList.count - 1                                    'SongLists
      Set objSongData = objSongList.Item(iCounter)
      ObjectArtist = objSongData.Artist.Member
      SDB.MessageBox "Value = '" &  ObjectArtist & "'", mtError, Array(mbOK)    'SDB.MessageBox
' objSongData.Artist.Member = ObjectNewArtist 'Commented Out For Safety
' objSonglist.UpdateAll              'Commented Out For Safety                 'UpdateAll
                         Updates db and writes tags (if checked in options)
End Sub