Modify Task Start via code

S

Sebastian Cordoba

Hi everyone.

How can I modify the Start date for a task via code? I'm trying to replace
it with
the BaselineStart value but apparently "Start" is a read only field.

My code goes like: myTask.Start = myTask.BaselineStart, but it doesn't
work. Is there a faster way to replace the actual values (Start, Finish,
Duration, Work) with the baseline ones?

Thank you.
 
J

Jack Dahlgren MVP

Start is not read-only, but it is calculated based on dependencies and any
constraints you have set.

If you use "Actual Start" then it will hold the task where you set it
Or you can set a constraint on the task and that will also pin it in place.
Finish is pretty much the same.

Duration and work should not be a problem at all to set.

-Jack Dahlgren
 

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