Skip to main content
Table of Contents

TTMSFNCGanttTask.AddDependentTask Method

Adds a task that depends on this task.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttTask

Syntax

FMX.TMSFNCGanttClasses.hppPascalC++
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;
TTMSFNCGanttTask* __fastcall AddDependentTask(System::UnicodeString AName, System::UnicodeString ADescription, TTMSFNCGanttTaskDependencyType ADependencyType, double ADurationValue = 0.000000E+00, TTMSFNCGanttDurationType ADurationType = (TTMSFNCGanttDurationType)(0x0), double ADelayValue = 0.000000E+00, TTMSFNCGanttDurationType ADelayType = (TTMSFNCGanttDurationType)(0x0), TTMSFNCGanttTaskWorkTimePolicy AWorkTimePolicy = (TTMSFNCGanttTaskWorkTimePolicy)(0x0), int AProgress = 0x0, TTMSFNCGanttTaskState* AState = (TTMSFNCGanttTaskState*)(0x0));

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.