SetTaskLevel method: Gantt class
Syntax
SetTaskLevel(RecordName.FieldName)
Description
Use the SetTaskLevel method to specify the field in the record that defines the level for the task. The outermost summary tasks are always defined as task level one. Tasks with task levels greater than one are subtasks. Subtasks may also contain other subtasks.
If a field is not provided to define the level, all tasks are defined at level 1. A maximum of 32 levels are supported.
The following table shows an example of the different levels that could be used, as well as what the parent task level is.
Note:
The parent task is not actually part of the data.
| Task Name | Task Level | Parent Level |
|---|---|---|
|
Phase I |
1 |
None |
|
Evaluation |
2 |
Phase I |
|
Research |
3 |
Evaluation |
|
Report Findings |
3 |
Evaluation |
|
Create Budget |
2 |
Phase I |
|
Approve Budget |
3 |
Create Budget |
|
Phase II |
1 |
None |
|
Code and Test |
2 |
Phase II |
|
Phase III |
1 |
None |
|
Training |
2 |
Phase III |
Parameters
| Parameter | Description |
|---|---|
|
RecordName.FieldName |
Specify the field, and its associated record, that contains the information about the task level. This field must be of type number. Up to 32 levels are supported. |
Returns
None.
Related Topics