ISDBSongData::DiscNumber: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
Disc # field as integer value, i.e. it can't represent values like 'I', 'X', or values with leading zeroes.
Disc # field as integer value, i.e. it can't represent values like 'I', 'X', or values with leading zeroes.


Introduced in MediaMonkey 3.0.0.1095.
Introduced in MediaMonkey 3.0.0.1093.<br>
 
To avoid type mismatches use [[ISDBSongData::DiscNumberStr|DiscNumberStr]]
{{Property Summary|SongData|DiscNumber|Value|Songs|DiscNumber|Integer|||}}
[[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 22:20, 24 May 2008

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let DiscNumber As Long


Property description

Disc # field as integer value, i.e. it can't represent values like 'I', 'X', or values with leading zeroes.

Introduced in MediaMonkey 3.0.0.1093.
To avoid type mismatches use DiscNumberStr

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

Example Code

Complete script

Sub

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