ISDBSongData::Year: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 3: | Line 3: | ||
===Property description=== | ===Property description=== | ||
Year part of the full date. Note that if you set this value, you automatically erase Month and Day 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. | Year part of the full date. Note that if you set this value, you automatically erase Month and Day 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 Month and Day if Year is not set since it yields strange result. | ||
{{Property Summary|SongData|Year|Value|Songs|Year|Integer|Date|19740000|}} | {{Property Summary|SongData|Year|Value|Songs|Year|Integer|Date|19740000|}} |
Latest revision as of 17:08, 5 June 2008
CoClass SDBSongData, Interface ISDBSongData
Property Get/Let Year As Long
Property description
Year part of the full date. Note that if you set this value, you automatically erase Month and Day 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 Month and Day if Year is not set since it yields strange result.
Scripting Object | SDBSongData |
Value Name | Year |
Value Type | Value |
Database Table | Songs |
Field Name | Year |
Field Type | Integer |
Tracklist Column | Date |
Example Data | 19740000 |
Example Code
Sub For iCounter = 0 to objSongList.count - 1 'SongLists Set objSongData = objSongList.Item(iCounter) ValueYear = objSongData.Year SDB.MessageBox "Value = '" & ValueYear & "'", mtError, Array(mbOK) 'SDB.MessageBox Next ' objSongData.Year = ValueNewYear 'Commented Out For Safety ' objSonglist.UpdateAll 'Commented Out For Safety 'UpdateAll Updates db and writes tags (if checked in options) End Sub