ISDBAlbumArtList::AddNew: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
===Example code=== | ===Example code=== | ||
<source lang="vb">Set SL = SDB.CurrentSongList | <source lang="vb"> | ||
If SL.Count | Set SL = SDB.CurrentSongList | ||
If SL.Count>0 Then | |||
Set Track = SL.Item(0) | Set Track = SL.Item(0) | ||
Set AAList = Track.AlbumArt | Set AAList = Track.AlbumArt | ||
Line 16: | Line 17: | ||
AA.ItemStorage = 0 | AA.ItemStorage = 0 | ||
AAList.UpdateDB | AAList.UpdateDB | ||
End If</source> | End If | ||
</source> | |||
[[Category:Scripting|{{PAGENAME}}]] | [[Category:Scripting|{{PAGENAME}}]] |
Revision as of 14:20, 21 March 2007
CoClass SDBAlbumArtList, Interface ISDBAlbumArtList
Property Get AddNew As ISDBAlbumArtItem
Property description
Adds new item to the list and returns it to user for further modifications.
Example code
Set SL = SDB.CurrentSongList
If SL.Count>0 Then
Set Track = SL.Item(0)
Set AAList = Track.AlbumArt
Set AA = AAList.AddNew
AA.PicturePath = "D:\test.jpg"
AA.Description = "Test"
AA.ItemType = 5
AA.ItemStorage = 0
AAList.UpdateDB
End If