ISDBAlbumArtList::AddNew: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:


Adds new item to the list and returns it to user for further modifications.
Adds new item to the list and returns it to user for further modifications.
ItemSorage valueas are:
0 = Tag,
1 = File,
2 = Cover Storage (deprecated),
3 = Tag And File


===Example code===                     
===Example code===                     
<source lang="vb">Set SL = SDB.CurrentSongList
<source lang="vb">
   If SL.Count&gt;0 Then
  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 23:
     AA.ItemStorage = 0
     AA.ItemStorage = 0
     AAList.UpdateDB
     AAList.UpdateDB
   End If</source>
   End If
</source>


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

Latest revision as of 13:22, 17 October 2012

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.

ItemSorage valueas are: 0 = Tag, 1 = File, 2 = Cover Storage (deprecated), 3 = Tag And File

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