ISDBDatabase::GetAutoPlaylistQuery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
Introduced in MediaMonkey 4.0 | Introduced in MediaMonkey 4.0 | ||
===Example code=== | |||
<source lang="vb"> | |||
Dim res, iter | |||
If SDB.MainTree.CurrentNode.NodeType = 71 Then | |||
Set Iter = SDB.Database.OpenSQL( SDB.Database.GetAutoPlaylistQuery(SDB.MainTree.CurrentNode.RelatedObjectID)) | |||
While Not Iter.EOF | |||
' do something here.... | |||
Iter.Next | |||
Wend | |||
Else | |||
res = SDB.MessageBox( "You must select Auto-Playlist!", mtError, Array(mbOk)) | |||
End If | |||
</source> | |||
[[Category:Scripting|{{PAGENAME}}]] | [[Category:Scripting|{{PAGENAME}}]] |
Revision as of 22:59, 16 February 2011
CoClass SDBDatabase, Interface ISDBDatabase
Function GetAutoPlaylistQuery(ID As Integer) As String
Parameters
Name | Type | Description |
---|---|---|
ID | Integer | ID of specified auto-playlist |
Method description
Returns SQL query used by specified auto-playlist.
Introduced in MediaMonkey 4.0
Example code
Dim res, iter
If SDB.MainTree.CurrentNode.NodeType = 71 Then
Set Iter = SDB.Database.OpenSQL( SDB.Database.GetAutoPlaylistQuery(SDB.MainTree.CurrentNode.RelatedObjectID))
While Not Iter.EOF
' do something here....
Iter.Next
Wend
Else
res = SDB.MessageBox( "You must select Auto-Playlist!", mtError, Array(mbOk))
End If