Sorry, I don't know anything about the code you've written other than to point out that when you create a task indent it, and create another task - the newly added task 'inherits' the outline level of the task above it. In your code you're adding a task and indenting and adding the next task and indenting. You may be better served by adding the tasks, and then creating the outline level after all tasks are added.
|