Improved readability of code...
'Main Loop
While Not Project.Variables.SearchPanelLoop.IsEOF
'(Pick a Task) Double-clicks the KeywordTests.LoopedNavigation.Variables.SearchPanelLoop("Selection") item.
Call Aliases.Samtec_ShopFloorControl_AppHost.TaskManagerForm.WindowDockingArea1.DockableWindow1.TaskSearchPanel.TaskListView.DblClickItem(Project.Variables.SearchPanelLoop.Value("Selection"))
'(Check the Task) Checks whether the 'Exists' property of the Page called up equals True.
Call aqObject.CheckProperty(Project.Variables.SearchPanelLoop.Value("Control"), "Exists", cmpEqual, True)
'Right Click on the Tab
Call Aliases.Samtec_ShopFloorControl_AppHost.TaskManagerForm.MdiTabGroupControl.ClickR(37, 10)
'close the tab
Call Aliases.Samtec_ShopFloorControl_AppHost.TaskManagerForm.MdiTabGroupControl.PopupMenu.Click("[0]")
Call Project.Variables.SearchPanelLoop.Next
WEnd