From MediaMonkey Wiki
Revision as of 17:07, 5 June 2008 by Bex (talk | contribs) (→‎Property description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let OriginalYear As Long

Property description

Year part of the full original date. Note that if you set this value, you automatically erase OriginalMonth and OriginalDay to 0. So, if you want to set the full date this way, you have to set Year first and only then Month and Day. Also, do not set OriginalMonth and OriginalDay if OriginalYear is not set since it yields strange result.

Scripting Object SDBSongData
Value Name OriginalYear
Value Type Value
Database Table Songs
Field Name OrigYear
Field Type Integer
Tracklist Column Original Date
Example Data 19740000

Example Code

Complete script


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