PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of GanttLink variables
  • Notes
  • Using GanttLink variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
GanttLink (Type of variable)
In French: LienGantt
The GanttLink type is used to define the advanced characteristics of a link between two tasks of a Gantt chart. The characteristics of this link can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
// Retrieve all the links that point to "ID1"
arrLink is array of GanttLink
arrLink = GanttListLink(COL_Gantt, "ID1")
Link is GanttLink
FOR EACH Link OF arrLink
Trace("Linked to " + Link..SourceID)
END
Remarks

Properties specific to the description of GanttLink variables

The following properties can be used to handle a link between two Gantt tasks:
Name of propertyType usedEffect
DestinationIDCharacter stringIdentifier of the destination task. This identifier corresponds to the ..ID property defined in the GanttTask variable.
SourceIDCharacter stringIdentifier of the source task. This identifier corresponds to the ..ID property defined in the GanttTask variable.
Type
(Available from version 190044)
Integer constantType of link. The available types of links are as follows:
  • gltStartToStart: "Start to Start" link: The destination task cannot start as long as the source task is not started.
  • gltStartToEnd: "Start to End" link: The destination task cannot end as long as the source task is not started (rare case).
  • gltEndToStart (default value): "End to Start" link: The destination task cannot start as long as the source task is not ended.
  • gltEndToEnd: "End to End" link: The destination task cannot end as long as the source task is not ended.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Notes

  • A link between 2 tasks is represented by an arrow.
  • This type of variable:
  • An "End to Start" link is created by default between two tasks: the task corresponding to ..SourceID must be ended in order for the ..DestinationID task to start.
  • According to their types, the links are drawn on the start or end borders of the tasks.

Using GanttLink variables

The GanttLink variables are used by the following functions:
Versions 19 and later
GanttAddLink
New in version 19
GanttAddLink
GanttAddLink
Creates an "End to Start" link between two tasks displayed in a Gantt Chart column found in a Table (or TreeView Table) control.
Versions 19 and later
GanttDeleteLink
New in version 19
GanttDeleteLink
GanttDeleteLink
Deletes the links from a Gantt Chart column found in a Table (or TreeView Table) control.
Versions 19 and later
GanttListLink
New in version 19
GanttListLink
GanttListLink
Lists the links found in a Gantt Chart column found in a Table (or TreeView Table) control.
Related Examples:
WD Gantt Complete examples (WINDEV): WD Gantt
[ + ] The "WD Gantt" example presents an advanced use of the Gantt Chart control.
This example is used to create a Gantt chart with tasks, links, cumulative tasks and milestones.
The tasks can be edited in a specific window.
The created chart can be saved in a file and reloaded thereafter.
The Gantt control Unit examples (WINDEV): The Gantt control
[ + ] Using a Gantt Chart control
See also
Minimum required version
  • Version 19
Comments
Click [Add] to post a comment