SchedulerGetNext Method (MWriterClass)
if this parameter is "1" then all scheduled items will be returned
index of task relative to the current item
task start time
command name of task
MItem scheduled object
Gets one of next tasks or all next tasks after specified index.
Syntax
Public Overridable Sub SchedulerGetNext( _
   ByVal _bAllTasks As Integer, _
   ByVal _nIndex As Integer, _
   ByRef _pTaskTime As M_DATETIME, _
   ByRef _pbsCommand As String, _
   ByRef _ppTask As MItem _
) 
public virtual void SchedulerGetNext( 
   int _bAllTasks,
   int _nIndex,
   out M_DATETIME _pTaskTime,
   out string _pbsCommand,
   out MItem _ppTask
)
public procedure SchedulerGetNext( 
    _bAllTasks: Integer;
    _nIndex: Integer;
   Out  _pTaskTime: M_DATETIME;
   Out  _pbsCommand: String;
   Out  _ppTask: MItem
); virtual; 
public: virtual void SchedulerGetNext( 
   int _bAllTasks,
   int _nIndex,
   [PARAMFLAG::Out] M_DATETIME _pTaskTime,
   [PARAMFLAG::Out] BSTR* _pbsCommand,
   [PARAMFLAG::Out] MItem* _ppTask
) 

Parameters

_bAllTasks
if this parameter is "1" then all scheduled items will be returned
_nIndex
index of task relative to the current item
_pTaskTime
task start time
_pbsCommand
command name of task
_ppTask
MItem scheduled object
Example
Dim myTime As M_DATATIME
Dim myCommand As String
Dim myTask As MItem
mPlaylist.SchedulerGetNext(0, 1, myTime, myCommand, myTask)
M_DATATIME myTime;
string myCommand;
MItem myTask;
mPlaylist.SchedulerGetNext(0, 1, out myTime, out myCommand, out myTask);
var
myPlaylist: MPlaylist;
myScheduler: IMScheduler;
myTime: M_DATETIME;
myTask: MItem;
myCommand: string;
begin
myPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist; 
myScheduler := myPlaylist as IMScheduler;
myScheduler.SchedulerGetNext(0, 1, myTime, myCommand, myTask);
end;
See Also

Reference

MWriterClass Class
MWriterClass Members