HOWTO: Create OutlineChildren Task

H

HJ

Hi Folks!

I have the following scenario in my project (MS
Project 2003):

ID Description
... ... (previous tasks)
14 Analisys
15 Meeting
16 Development
... ... (following tasks)

I want to (programmatically) create a task -
"Discussion" - between the 15th and 16th (see the example
below)

ID Description
... ... (previous tasks)
14 Analisys
15 Meeting
16 Discussion
17 Development
... ... (following tasks)

Obs: There is a method
named "Task.OutlineChildren.Add" that acctually creates a
task, however it is created in the last position of the
document.

Thanks!

HJ
 
H

HJ

The "Add" method has a parameter named "Before" where we
can pass the "ID" field. Ex: Insert this task "BEFORE" the
ID # X.
If it is a "dependent" task, we can use the
command "Task.OutlineIndent" to accomplish this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top