Difference between revisions of "ISDBSongData::TrackOrder"

From MediaMonkey Wiki
Jump to: navigation, search
(One intermediate revision by the same user not shown)
Line 2: Line 2:
===Property description===
===Property description===
To avoid type mismatches use [[ISDBSongData::TrackOrderStr|TrackOrderStr]]
{{Property Summary|SongData|TrackOrder|Value|Songs|TrackNumber|Integer|Track #|7|}}

Latest revision as of 22:24, 24 May 2008

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let TrackOrder As Long

Property description

To avoid type mismatches use TrackOrderStr

Scripting Object SDBSongData
Value Name TrackOrder
Value Type Value
Database Table Songs
Field Name TrackNumber
Field Type Integer
Tracklist Column Track #
Example Data 7

Example Code

Complete script


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