AddTaskUsingDuration

 

Purpose: Create a task in a task row using a start date plus duration.

 

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:

 

 

 

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"

  .Refresh

End With

 

 

Related Topics

  1. Example 7 - Use the AddTaskUsingDuration method
  2. AddSymbol
  3. SetSymbolProperty

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To effectively program with this interface, it's important to learn all about Milestones Professional.  Learn about Milestones.

Milestones Professional 2025 Automation Methods and Properties.  © Copyright 2000-2025, KIDASA Software, Inc. All rights reserved.