PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Adds a task into a Gantt Chart column found in a Table (or TreeView Table) control.
Example
NewTask is GanttTask

// Configures the task
NewTask..ID = GetIdentifier()
NewTask..Row = 1
NewTask..Progress = 50
NewTask..StartDate = Today()
NewTask..DurationInDay = 1
NewTask..Title = "New task"

// Adds the task
GanttAddTask(COL_Gantt, NewTask)
Syntax

Adding an appointment into a Gantt chart by using the GanttTask type Hide the details

GanttAddTask(<Gantt Column> , <Task>)
<Gantt Column>: Character string (with or without quotes)
Name of the Gantt Chart column (found in a Table or TreeView Table control) to use.
<Task>: GanttTask variable
Name of GanttTask variable describing the characteristics of the task to add.
Remarks
  • The new task is added then it is displayed.
  • The task can be retrieved in a GanttTask variable by using GanttGetTask:
    <Variable Name> <- GanttGetTask(<Gantt Column>, <Identifier>)

    where Identifier is the identifier of the task to retrieve.
    For example:
    // Modify a task
    MyTask is GanttTask
    MyTask <- GanttGetTask(COL_Gantt, "ID1")
    MyTask..Progress = 70
    MyTask..ProgressColor = LightGreen

    As the task is retrieved by the <- operator, the modifications performed on the GanttTask variable will be automatically applied to the Gantt chart.
    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..BrushColor = LightBlue
  • A WLanguage error occurs if the task has no identifier or if this identifier already exists.
Components
WINDEVReports and Queries wd230mdl.dll
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment