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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds a task in a column of an Table control (or Hierarchical Table) of type Gantt Chart.
Example
NouvelleTâche is GanttTask
 
// Paramètre la tâche
NouvelleTâche.ID = GetIdentifier()
NouvelleTâche.Row = 1
NouvelleTâche.Progress = 50
NouvelleTâche.StartDate = Today()
NouvelleTâche.DurationInDay = 1
NouvelleTâche.Title = "Nouvelle tâche"
 
// Ajoute la tâche
GanttAddTask(COL_Gantt, NouvelleTâche)
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 Gantt Chart column (found in a Table or TreeView Table control) to use.
<Task>: GanttTask variable
Name of the GanttTask variable that describes 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:
    <Nom de la variable> <- GanttRécupèreTâche(<Colonne Gantt>, <Identifiant>)

    where Identifier is the identifier of the task to retrieve.
    For example:
    // Modification d'une tâche
    MaTâche is GanttTask
    MaTâche <- GanttGetTask(COL_Gantt, "ID1")
    MaTâche.Progress = 70
    MaTâche.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:
    <Nom de la variable> <- <Colonne Gantt>["<Identifiant>"]

    For example:
    t <-COL_Gantt["ID1"]
    t..BackgroundColor = LightBlue
  • A WLanguage error occurs if the task has no identifier or if this identifier already exists.
Business / UI classification: UI Code
Component: wd260mdl.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment