Soldato
- Joined
- 8 Jan 2003
- Posts
- 3,836
- Location
- Scotland
I'm struggling to get my head around how to code for a piece of logic. It's a project tasks list in WSS which gives you a Gantt view. Most of the functionality is handled OOTB, however I need to add some code to prevent any overlapping of tasks, tasks will run in serial.
What I can't get my head around is how to code for the various situations, such as;
It's even confusing to explain
Suggestions appreciated, I'm tired, I can't seem to get my head around this and need a fresh pair of eyes on this to unlock the key!!
What I can't get my head around is how to code for the various situations, such as;
- If the newly added task is the first in the list then change the start dates on all other tasks to be the same + the new tasks duration.
- If it's the last in the list then just add the task.
- If it slots in the middle then make sure it doesn't overlap any tasks by moving it to the end of any tasks it overlaps at the start and moving any subsequent tasks down again.
It's even confusing to explain

Suggestions appreciated, I'm tired, I can't seem to get my head around this and need a fresh pair of eyes on this to unlock the key!!