CCorrectiveTask.GetTeams Method: Difference between revisions
Jump to navigation
Jump to search
(Created page with '{{DISPLAYTITLE:cCorrectiveTask.GetTeams Method}}{{Template:API}}{{Template:APIBreadcrumb|.cCorrectiveTask}} <onlyinclude>Returns an array teams requir…') |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
===Parameters=== | ===Parameters=== | ||
''arr()'' | ''arr()'' | ||
:Required as [[TeamInfo Class|TeamInfo]]. An array of the | :Required as [[TeamInfo Class|TeamInfo]]. An array of the team IDs for the task. | ||
== Example == | == Example == | ||
'''VBA''' | '''VBA''' | ||
{{APIComment|'Declare a new Repository object and connect to a Synthesis repository.}} | {{APIComment|'Declare a new Repository object and connect to a Synthesis repository.}} | ||
{{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository | {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository | ||
MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr19"}}) | MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr19"}}) | ||
MyRepository.Project.SetCurrentProject(1) | |||
{{APIComment|'Get a particular task with ID of 2 from repository.}} | {{APIComment|'Get a particular task with ID of 2 from repository.}} | ||
Line 27: | Line 28: | ||
{{APIComment|'Create instance of TeamInfo.}} | {{APIComment|'Create instance of TeamInfo.}} | ||
{{APIPrefix|Dim}} Teams() {{APIPrefix|As}} TeamInfo | {{APIPrefix|Dim}} Teams() {{APIPrefix|As}} TeamInfo | ||
{{APIPrefix| | {{APIPrefix|Call}} aTask.GetTeams(Teams) | ||
Latest revision as of 18:26, 14 March 2019
Member of: SynthesisAPI.cCorrectiveTask
Returns an array teams required for the task.
Remarks: Designed for VB6/VBA users, but can also be used in .NET. Alternatively, .NET users can use the Teams()
property in the class to get or set the teams.
Syntax
.GetTeams(ByRef arr())
Parameters
arr()
- Required as TeamInfo. An array of the team IDs for the task.
Example
VBA 'Declare a new Repository object and connect to a Synthesis repository. Dim MyRepository As New Repository MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr19") MyRepository.Project.SetCurrentProject(1) 'Get a particular task with ID of 2 from repository. Dim aTask As cCorrectiveTask Set aTask = MyRespository.Task.GetCorrectiveTask(2) 'Create instance of TeamInfo. Dim Teams() As TeamInfo Call aTask.GetTeams(Teams)