From MediaMonkey Wiki
Jump to: navigation, search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let ArtistName As String

Property description

Scripting Object SDBSongData
Value Name ArtistName
Value Type String
Database Table Songs
Field Name Artist
Field Type Text
Tracklist Column Artist
Example Data ABBA; Benny Andersson

Example Code

Complete script


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