PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns:
  • the list of tasks included between two given dates in a Gantt Chart column,
  • all the tasks found in a Gantt Chart column,
  • a specific task (selected or hovered).
// Liste toutes les tâches
tabListe is array of GanttTask
 
// Récupère la liste des tâches
tabListe = GanttListTask(COL_Gantt)
 
InfoBuild("Les tâches ont bien été récupérées" + CR + ...
"Le tableau contient %1 tâche(s).", tabListe.Count)
// Liste les tâches à partir de la date du jour
tabListe is array of GanttTask
 
// Récupère la liste des tâches
tabListe = GanttListTask(COL_Gantt, DateSys())
// Récupère la tâche sélectionnée
tabListe is array of GanttTask
 
// Récupère la liste des tâches
tabListe = GanttListTask(COL_Gantt, ganttSelectedTask)
 
InfoBuild("La tâche récupérée: %1.", tabListe[1].Titre)
Syntax

Retrieving the list of tasks found between two dates Hide the details

<Result> = GanttListTask(<Gantt column> [, <Start date> [, <End date>]])
<Result>: Array of GanttTask variables
Name of array containing the GanttTask variables.
If a task corresponding to the specified criteria is found, this array will contain a single element.
If no task corresponds to the specified criteria, this array will contain 0 task.
<Gantt column>: Control name
Name of the Gantt Chart column (in a Table or TreeView Table control) to be used.
<Start date>: Optional DateTime variable
Start date for task selection.
If this parameter is not specified, all the tasks found in the Gantt chart will be returned.
<End date>: Optional DateTime variable
End date for task selection.
If this parameter is not specified, all the tasks found in the Gantt chart will be returned.

Retrieving information about a specific task Hide the details

<Result> = GanttListTask(<Gantt column> , <Type of Task>)
<Result>: Array of GanttTask variables
Name of array containing Variable of type GanttTask.
If a task corresponding to the specified criteria is found, this array will contain a single element.
If no task corresponds to the specified criteria, this array will contain 0 task.
<Gantt column>: Control name
Name of the Gantt Chart column (in a Table or TreeView Table control) to be used.
<Type of Task>: Integer constant
Type of sought task:
ganttSelectedTaskTask currently selected in the Gantt Chart control. If no task is selected, <Result> will correspond to an array of 0 element.
ganttHoveredTaskTask hovered by the mouse in the Gantt Chart control. If no task is hovered, <Result> will correspond to an array of 0 element.
Related Examples:
The Gantt control Unit examples (WINDEV): The Gantt control
[ + ] Using a Gantt Chart control
Component: wd270mdl.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment