ISDBSongData::ID

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let ID As Long


Property description

Internal identification number of the track in the Library.

ID
Scripting Object SDBSongData
Value Name ID
Value Type Value
Database Table Songs
Field Name ID
Field Type Integer
Example Data 10234

Example Code

Complete script

Sub

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