Purpose: Create a task in a task row using a start date plus duration.
Return Value: None
|
Argument |
Type |
Required |
Purpose |
|
1 |
Integer |
Yes |
Task Row (1 based) |
|
2 |
String |
Yes |
Start Date (in short date form based on regional settings) e.g. m/d/y |
|
3 |
Integer |
No, use 0 for default |
Starting Symbol type from toolbox (1-64) |
|
4 |
Integer |
No, use 0 for default |
Starting Horizontal connector type from toolbox (1-32). |
|
5 |
Integer |
Yes, set to 0 |
Reserved for future use. |
|
6 |
Integer |
Yes |
Symbol type for second symbol from toolbox (1-64) |
|
7 |
Integer |
Yes |
Duration |
|
8 |
String |
Yes |
Duration Type, set to "Day", "Hour", or "Minute", depending upon the units of argument 7. |
|
9 |
Integer |
No |
Starting Symbol hour (0-23) |
|
10 |
Integer |
No |
Starting Symbol minute (0-59) |
|
11 |
String |
No, use "" for default |
Starting Symbol text line 1 (58 chars max) |
|
12 |
String |
No, use "" for default |
Starting Symbol text line 2 (58 chars max) |
|
13 |
String |
No, use "" for default |
Starting Symbol text line 3 (58 chars max) |
Notes:
This command automatically makes sure that enough rows are allocated to hold data. Rows are allocated as needed.
Symbols are initially ordered based upon the order in which they are added so it is important that the vertical indexes of connected symbols reflect the final correct date order after sorting is done.
The SortSymbols call sorts the symbols on a line. Add all the symbols to a row before using the SortSymbols call. Out of order symbols can cause the SmartColumn calculations to be incorrect.
Horizontal connections are only displayed if the connected symbol has a date later than the originating symbol.
|
|
Example: Add two symbols to row one that are connected by a bar. Use symbol type 5 for the first symbol and symbol type 3 for the second symbol. Use connector type 7. With objMilestones .AddTaskUsingDuration 1, "7/12/2022", 2, 5, 2, 2, 65, "Day", 12, 0, "Create Using Days" End With
|
To effectively program with this interface, it's important to learn all about Milestones Professional. Learn about Milestones.
Milestones Professional 2023 Automation Methods and Properties. © Copyright 2000-2023, KIDASA Software, Inc. All rights reserved.