Table of Contents

TTMSFNCGanttTask.AddDependentTask Method

Adds a task that depends on this task.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttTask

Syntax

function AddDependentTask(AName: string; ADescription: string; ADependencyType: TTMSFNCGanttTaskDependencyType; ADurationValue: Double = 0; ADurationType: TTMSFNCGanttDurationType = gdtSeconds; ADelayValue: Double = 0; ADelayType: TTMSFNCGanttDurationType = gdtSeconds; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays; AProgress: Integer = 0; AState: TTMSFNCGanttTaskState = nil): TTMSFNCGanttTask;

Parameters

Name Description
AName Name of the dependent task.
ADescription Description of the dependent task.
ADependencyType Dependency relationship between this task and the new task.
ADurationValue Duration amount expressed in ADurationType.
ADurationType Unit used by ADurationValue.
ADelayValue Dependency delay amount expressed in ADelayType.
ADelayType Unit used by ADelayValue.
AWorkTimePolicy Calendar policy used to schedule the task.
AProgress Initial progress percentage.
AState Optional state assigned to the new task.

Returns

The newly created dependent task.