Difference between revisions of "ISDBSongData::SongLength"

From MediaMonkey Wiki
Jump to: navigation, search
 
 
Line 4: Line 4:
  
 
Length of track in milliseconds.
 
Length of track in milliseconds.
 
+
{{Property Summary|SongData|SongLength|Value|Songs|SongLength|Integer|Length|265306|}}
 
[[Category:Scripting|{{PAGENAME}}]]
 
[[Category:Scripting|{{PAGENAME}}]]
 
[[Category:Automation objects|{{PAGENAME}}]]
 
[[Category:Automation objects|{{PAGENAME}}]]
 
[[Category:CoClass SDBSongData|{{PAGENAME}}]]
 
[[Category:CoClass SDBSongData|{{PAGENAME}}]]
 
[[Category:Interface ISDBSongData|{{PAGENAME}}]]
 
[[Category:Interface ISDBSongData|{{PAGENAME}}]]

Latest revision as of 01:42, 8 May 2008

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