E
Evan S. Dictor
My question is completely different from the other Moving Task question, so I
started a new thread instead of continuing that one.
I am working on a Project add-in DLL written in VB6. A user selects an
option that checks external data and determines that a task in the project is
in the wrong place (generally has the wrong parent task). Is there any way
for me to move that task and all it's children to the new parent?
task.parent is Read Only, so that doens't work. The only way I've found so
far is to insert a new blank task in the correct parent, copy all the fields
over, and then delete the task in the wrong parent. Recursion handles
anything below that, but the whole thing just seems very ugly to me.
I also tried EditCut and EditPaste, but the EditPaste gave me a "The method
is not available in this situation." error, and the clipboard didn't seem to
have the correct task (or any task for that matter) anyway. I also don't like
the idea of blowing away the clipboard.
Is there a better way?
Thanks,
Evan S. Dictor
started a new thread instead of continuing that one.
I am working on a Project add-in DLL written in VB6. A user selects an
option that checks external data and determines that a task in the project is
in the wrong place (generally has the wrong parent task). Is there any way
for me to move that task and all it's children to the new parent?
task.parent is Read Only, so that doens't work. The only way I've found so
far is to insert a new blank task in the correct parent, copy all the fields
over, and then delete the task in the wrong parent. Recursion handles
anything below that, but the whole thing just seems very ugly to me.
I also tried EditCut and EditPaste, but the EditPaste gave me a "The method
is not available in this situation." error, and the clipboard didn't seem to
have the correct task (or any task for that matter) anyway. I also don't like
the idea of blowing away the clipboard.
Is there a better way?
Thanks,
Evan S. Dictor