SchedulerGetByTime Method (IMScheduler)
check time that is used to calculate start time of next task
start time of next task
command name
MItem task object
Gets the task that is next to the specified time.
Syntax
Sub SchedulerGetByTime( _
   ByRef _pCheckTime As M_DATETIME, _
   ByRef _pTaskTime As M_DATETIME, _
   ByRef _pbsCommand As String, _
   ByRef _ppTask As MItem _
) 
void SchedulerGetByTime( 
   ref M_DATETIME _pCheckTime,
   out M_DATETIME _pTaskTime,
   out string _pbsCommand,
   out MItem _ppTask
)
procedure SchedulerGetByTime( 
   var  _pCheckTime: M_DATETIME;
   Out  _pTaskTime: M_DATETIME;
   Out  _pbsCommand: String;
   Out  _ppTask: MItem
); 
void SchedulerGetByTime( 
   ref M_DATETIME _pCheckTime,
   [PARAMFLAG::Out] M_DATETIME _pTaskTime,
   [PARAMFLAG::Out] BSTR* _pbsCommand,
   [PARAMFLAG::Out] MItem* _ppTask
) 

Parameters

_pCheckTime
check time that is used to calculate start time of next task
_pTaskTime
start time of next task
_pbsCommand
command name
_ppTask
MItem task object
Example
Dim mTimeStart As M_DATETIME
Dim mTimeStop As M_DATETIME
Dim eStartType As eMStartType
Dim myTask As MItem
pItem.ItemTimesGet(mTimeStart, mTimeStop, eStartType)
Dim myName As String
Dim myNewTime As M_DATETIME
mPlaylist.SchedulerGetByTime(mTimeStop, myNewTime, myName, myTask)
M_DATETIME mTimeStart;
M_DATETIME mTimeStop;
eMStartType eStartType;
MItem myTask;
pItem.ItemTimesGet(out mTimeStart, out mTimeStop, out eStartType);
string myName;
M_DATETIME myNewTime;
mPlaylist.SchedulerGetByTime(ref mTimeStop, out myNewTime, out myName, out myTask);
var
myPlaylist: MPlaylist;
mTimeStart, mTimeStop, mNewTime: M_DATETIME;
eStartType: eMStartType;
myTask: MItem;
myCount: integer;
myName: string;
myScheduler: IMScheduler;
begin
myPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist;
pItem.ItemTimesGet(mTimeStart, mTimeStop, eStartType);
myScheduler := myPlaylist as IMScheduler;
myScheduler.SchedulerGetByTime(mTimeStop, myNewTime, myName, myTask);
end;
See Also

Reference

IMScheduler Interface
IMScheduler Members