Skip to main content

TcxSchedulerEvent.GetValidTaskTimeRangeByRelation(TcxSchedulerEventRelation,TcxSchedulerEvent,TDateTime,TDateTime) Method

Validates the current task’s time bounds.

Declaration

procedure GetValidTaskTimeRangeByRelation(const ARelation: TcxSchedulerEventRelation; AEvent: TcxSchedulerEvent; var AStart: TDateTime; var AFinish: TDateTime); virtual;

Parameters

Name Type
ARelation TcxSchedulerEventRelation
AEvent TcxSchedulerEvent
AStart TDateTime
AFinish TDateTime

Remarks

Use the GetValidTaskTimeRangeByRelation method if the task is linked to the other task (or tasks) as a successor, and its time bounds have been changed in code.

The calculation of the allowable time period depends upon the link type and the predecessor task’s time bounds.

ARelation specifies the link type.

AEvent represents the predecessor task.

AStart and AFinish represent the current task’s calculated time bounds.

See Also