W
Wayne
Hello all,
Can anyone assist with the best way to filter a list of tasks
programmtically? I am using the following code in a c# add-in for Projects
2007 but would like to apply a filter prior to the foreach statement so only
tasks containing the text 'design' in the Name field are included:
foreach (MSProject.Task MSPTask in MSPApp.ActiveProject.Tasks)
{
//
}
I can use if statements within the loop but this seems quite inefficient -
how do you apply a filter or select statement to a list of tasks prior to
looping through?
Thanks
Wayne
Can anyone assist with the best way to filter a list of tasks
programmtically? I am using the following code in a c# add-in for Projects
2007 but would like to apply a filter prior to the foreach statement so only
tasks containing the text 'design' in the Name field are included:
foreach (MSProject.Task MSPTask in MSPApp.ActiveProject.Tasks)
{
//
}
I can use if statements within the loop but this seems quite inefficient -
how do you apply a filter or select statement to a list of tasks prior to
looping through?
Thanks
Wayne