MPLATFORMLib Namespace > IMPlaylist Interface : PlaylistGetCount Method |
Sub PlaylistGetCount( _ ByRef _pnCount As Integer, _ ByRef _pdblTotalDuration As Double _ )
void PlaylistGetCount( out int _pnCount, out double _pdblTotalDuration )
procedure PlaylistGetCount( Out _pnCount: Integer; Out _pdblTotalDuration: Double );
void PlaylistGetCount( [PARAMFLAG::Out] int _pnCount, [PARAMFLAG::Out] double _pdblTotalDuration )
Here is example of how to remove all playlist items:
Dim nCount As Integer Dim nDuration As Double myPlaylist.PlaylistGetCount(nCount, nDuration) For i As Integer = 0 To nCount - 1 myPlaylist.PlaylistRemoveByIndex(i, 0) Next
int nCount; double nDuration; myPlaylist.PlaylistGetCount(out nCount, out nDuration); for (int i=0; i<nCount; i++) { myPlaylist.PlaylistRemoveByIndex(i, 0); }
var myCount, i: integer; myDuration: double; begin mPlaylist.PlaylistGetCount(myCount, myDuration); for i:=0 to myCount-1 do myPlaylist.PlaylistReemoveByIndex(i, 0); end;