ISDBSongData::TrackType

From MediaMonkey Wiki
Jump to: navigation, search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let TrackType As Long


Property description

Sets/Gets 'Type' aka 'Track Type' value.

Value meaning:

0 = 'Music'

1 = 'Podcast'

2 = 'Audiobook'

3 = 'Classical Music'

4 = 'Music Video'

5 = 'Video'

6 = 'TV'

7 = 'Video Podcast'


Corresponding box is situated on the 'Properties' dialog.

Introduced into MediaMonkey version 4.0

TrackType
Scripting Object SDBSongData
Value Name TrackType
Value Type Value
Database Table Songs
Field Name TrackType
Field Type Integer

Example Code

Complete script

Sub

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