ISDBSongData::Genre: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 2: Line 2:


===Property description===
===Property description===
 
{{Property Summary|SongData|Genre|String|Songs|Genre|Text|Genre|Rock|}}


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 06:50, 21 April 2008

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let Genre As String


Property description

Genre
Scripting Object SDBSongData
Value Name Genre
Value Type String
Database Table Songs
Field Name Genre
Field Type Text
Tracklist Column Genre
Example Data Rock

Example Code

Complete script

Sub

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