From MediaMonkey Wiki
Jump to: navigation, search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let FileLength As Long

Property description

Scripting Object SDBSongData
Value Name FileLength
Value Type Value
Database Table Songs
Field Name FileLength
Field Type Integer
Tracklist Column File Size
Example Data 4388864 (4.2MB)

Example Code

Complete script


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