From MediaMonkey Wiki
Revision as of 22:23, 24 May 2008 by MoDementia (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let DiscNumberStr As String

Property description

Disc # field, as a string in this case, i.e. it can handle values like '1', '01', 'I', etc.

Introduced in MediaMonkey
Replaces DiscNumber

Scripting Object SDBSongData
Value Name DiscNumberStr
Value Type String
Database Table Songs
Field Name DiscNumber
Field Type Text
Tracklist Column Disc #

Example Code

Complete script


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