ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Gantt Chart functions
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 between two given dates in a Gantt Chart column,
  • all the tasks in a Gantt Chart column,
  • a specific task (selected or hovered).
// Lists all the tasks
arrList is array of GanttTask
// Retrieves the list of tasks
arrList = GanttListTask(COL_Gantt)
InfoBuild("The tasks have been retrieved" + CR +
"The array contains %1 tasks.", arrList.Occurrence)
// Lists the tasks from today's date
arrList is array of GanttTask
// Retrieves the list of tasks
arrList = GanttListTask(COL_Gantt, DateSys())
// Retrieves the selected task
arrList is array of GanttTask
// Retrieves the list of tasks
arrList = GanttListTask(COL_Gantt, ganttSelectedTask)
InfoBuild("The retrieved task: %1.", arrList[1].Title)
Syntax

Getting the list of tasks 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 matching task is found, this array will contain a single element.
If no task matches the specified criteria, this array will contain zero tasks.
<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 tasks on the Gantt Chart will be returned.
<End date>: Optional DateTime variable
End date for task selection.
If this parameter is not specified, all tasks on the Gantt Chart will be returned.

Getting the details of a specific task Hide the details

<Result> = GanttListTask(<Gantt column> , <Type of task>)
<Result>: Array of GanttTask variables
Name of the array containing the GanttTask variable.
If a matching task is found, this array will contain a single element.
If no task matches the specified criteria, this array will contain zero tasks.
<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:
ganttHoveredTaskTask hovered by the mouse in the Gantt Chart control. If no task is hovered over, <Result> will be an array of zero elements.
ganttSelectedTaskTask currently selected in the Gantt Chart control. If no task is selected, <Result> will be an array of zero elements.
Related Examples:
The Gantt control Unit examples (WINDEV): The Gantt control
[ + ] Using a Gantt Chart control
Component: wd290mdl.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/27/2023

Send a report | Local help