TTMSFNCGanttProject.InsertTask Method
Inserts a task at the specified work-breakdown position.
API unit family: TMSFNCGanttClasses
Declaring type: TTMSFNCGanttProject
Syntax
function InsertTask(AWBS: string; AName: string; ADescription: string = ''; AStartDate: TDateTime = 0; ADurationValue: Double = 0; ADurationType: TTMSFNCGanttDurationType = gdtSeconds; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays; AProgress: Integer = 0; AState: TTMSFNCGanttTaskState = nil): TTMSFNCGanttTask;
Parameters
| Name | Description |
|---|---|
AWBS |
Work-breakdown position where the task is inserted. |
AName |
Task name. |
ADescription |
Task description. |
AStartDate |
Planned start date/time. |
ADurationValue |
Duration value. |
ADurationType |
Unit used by the duration value. |
AWorkTimePolicy |
Calendar policy used to schedule the task. |
AProgress |
Completion percentage. |
AState |
Optional task state. |
Returns
The newly created task.