ISDBSongData::Author: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
m (→Property description:  Changed wording of my previous edit)  | 
				MoDementia (talk | contribs)  No edit summary  | 
				||
| (2 intermediate revisions by one other user not shown) | |||
| Line 7: | Line 7: | ||
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.
| 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
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