How to Add a predecessor

R

Robert

Hello,
How can I add a predecessor (FS dependency) to a task the ID of which is
known.
For example, I want to say that Task # 100 has a predecessor which is task#
99.
Thanks for your halp
 
G

Gérard Ducouret

Hello,

Look at this example:
ActiveProject.Tasks(oTache.ID + 1).TaskDependencies.Add
From:=ActiveProject.Tasks(oTache.ID), Type:=pjFinishToStart

Gérard Ducouret
 

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