ISDBSongData::Author: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
m (→‎Property description: Changed wording of my previous edit)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
===Property description===
===Property description===


There is a redundant property, [[ISDBSongData::MusicComposer]], in Media Monkey 2.5. Based on limited testing it appears that Author is the property to use. The [[ISDBSongData::UpdateDB]] and [[ISDBSongData::WriteTags]] use the value from Author, not the value in the [[ISDBSongData::MusicComposer]] property. Also, this value can be used to display data already in the database, while [[ISDBSongData::MusicComposer]] apparently does not.
There is a redundant property, [[ISDBSongData::MusicComposer]], in Media Monkey 2.5. Based on limited testing it appears that this property (Author) is the property to use. The [[ISDBSongData::UpdateDB]] and [[ISDBSongData::WriteTags]] methods seem to use the value from Author rather than the value in the [[ISDBSongData::MusicComposer]] property. Also, this value can be used to display data already in the database, while [[ISDBSongData::MusicComposer]] apparently does not.


The situation under MediaMonkey version 3.x is unknown.
The situation under MediaMonkey version 3.x is unknown.


 
{{Property Summary|SongData|Author|String|Songs|Author|Text|Composer|Benny Andersson|}}
[[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 12:48, 11 April 2008

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let Author As String


Property description

There is a redundant property, ISDBSongData::MusicComposer, in Media Monkey 2.5. Based on limited testing it appears that this property (Author) is the property to use. The ISDBSongData::UpdateDB and ISDBSongData::WriteTags methods seem to use the value from Author rather than the value in the ISDBSongData::MusicComposer property. Also, this value can be used to display data already in the database, while ISDBSongData::MusicComposer apparently does not.

The situation under MediaMonkey version 3.x is unknown.

Author
Scripting Object SDBSongData
Value Name Author
Value Type String
Database Table Songs
Field Name Author
Field Type Text
Tracklist Column Composer
Example Data Benny Andersson

Example Code

Complete script

Sub

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