ISDBSongData::SongLength

From MediaMonkey Wiki
Jump to: navigation, search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let SongLength As Long


Property description

Length of track in milliseconds.

SongLength
Scripting Object SDBSongData
Value Name SongLength
Value Type Value
Database Table Songs
Field Name SongLength
Field Type Integer
Tracklist Column Length
Example Data 265306

Example Code

Complete script

Sub

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