Repository.Task.GetAllCorrectiveTasks

Gets a list of all existing corrective tasks in the current project. Returns a cCorrectiveTask object array that contains the task names, ID numbers and other information.

Syntax
.Task.GetAllCorrectiveTasks

Example
This example assumes that corrective tasks exist in the first available project of a repository.

VBA|VB.NET MyRepository Repository ListofTasks cCorrectiveTask MyRepository.Project.SetCurrentProject (1) ListofTasks = MyRepository.Task.GetAllCorrectiveTasks TaskName String TaskID Integer TaskName = ListofTasks(0).Name TaskID = ListofTasks(0).ID MsgBox ( & TaskName &  & TaskID)