ISDBSongData::Rating
Jump to navigation
Jump to search
CoClass SDBSongData, Interface ISDBSongData
Property Get/Let Rating As Long
Property description
Rating of the track (-1=Unknown, 0..100). Can be any of the values in the first column below.
Remark: rating values -2147483648 to -2 and 101 to 2147483647 are also interpreted as an Unknown rating, however you should never use these values.
Scripting Object | SDBSongData |
Value Name | Rating |
Value Type | Value |
Database Table | Songs |
Field Name | Rating |
Field Type | Integer |
Tracklist Column | Rating |
Example Data | 28 ![]() ![]() |
Example Code
Sub For iCounter = 0 to objSongList.count - 1 'SongLists Set objSongData = objSongList.Item(iCounter) ValueRating = objSongData.Rating SDB.MessageBox "Value = '" & ValueRating & "'", mtError, Array(mbOK) 'SDB.MessageBox Next ' objSongData.Rating = ValueNewRating 'Commented Out For Safety ' objSonglist.UpdateAll 'Commented Out For Safety 'UpdateAll Updates db and writes tags (if checked in options) End Sub