MPLATFORMLib Namespace > MItemClass Class : PlaylistGetCount Method |
Public Overridable Sub PlaylistGetCount( _ ByRef _pnCount As Integer, _ ByRef _pdblTotalDuration As Double _ )
public virtual void PlaylistGetCount( out int _pnCount, out double _pdblTotalDuration )
public procedure PlaylistGetCount( Out _pnCount: Integer; Out _pdblTotalDuration: Double ); virtual;
public: virtual 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;