|
|
|
|
|
<Gantt chart>.GetTask (Function) In french: <Diagramme de Gantt>.RécupèreTâche Gets a task using its identifier in a Gantt Chart column in a Table or TreeView Table control.
MaTâche is GanttTask
MaTâche <- COL_Gantt.RécupèreTâche("ID2")
MaTâche.Title = "Nouveau titre"
MaTâche is GanttTask
MaTâche = COL_Gantt.RécupèreTâche("ID1")
InfoBuild("Tâche récupérée : %1", MaTâche.Title)
Syntax
<Result> = <Gantt column>.RetrieveTasks(<Identifier>)
<Result>: GanttTask variable Name of the GanttTask variable from which the task characteristics are retrieved. <Gantt column>: Control name Name of the Gantt Chart column (in a Table or TreeView Table control) to be used. <Identifier>: Character string Identifier of the task to retrieve. This identifier corresponds to the ID property defined in the GanttTask variable. A WLanguage error occurs if the specified identifier does not exist. Remarks Retrieving a task To retrieve a task, you can: - use the "=" operator. In this case, you can get the characteristics of the retrieved task.
- use the "<-" operator. In this case, you can dynamically modify the retrieved task.
Case 1: Use of the "="operator . In this case, you can get the characteristics of the retrieved task. <Variable name> = GanttGetTask(<Gantt column>, <Identifier>) For example:
MaTâche is GanttTask
MaTâche = COL_Gantt.RécupèreTâche("ID1")
InfoBuild("Tâche récupérée : %1", MaTâche.Title)
You also have the ability to retrieve a task by using the following syntax: <Variable name> = <Gantt column>["<Identifier>"] For example: MaTâche is GanttTask
MaTâche = COL_Gantt["ID1"]
InfoBuild("Tâche récupérée : %1", MaTâche.Title)
2nd case: Use of the "<-". operator.In this case, you can dynamically modify the retrieved task. <Variable name> <- GanttGetTask(<Gantt column>, <Identifier>) where Identifier is the identifier of the task to retrieve. For example:
MaTâche is GanttTask
MaTâche <- COL_Gantt.RécupèreTâche("ID1")
MaTâche.Progress = 70
MaTâche.ProgressColor = LightGreen
You also have the ability to retrieve a task by using the following syntax: <Variable name> <- <Gantt column>["<Identifier>"] For example: t <-COL_Gantt["ID1"]
t.BackgroundColor = LightBlue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|