Repository.Task.AddCorrectiveTask: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIBreadcrumb|10|Repository}}
<noinclude>{{Template:API}}{{Template:APIBreadcrumb|10|Repository}}</noinclude>
{{Template:API}}
 
Saves a new [[CCorrectiveTask Class|cCorrectiveTask]] object to the Synthesis repository. Returns a '''Boolean''' value; when true, indicates that the task now exists in the repository.   
Saves a new [[CCorrectiveTask Class|cCorrectiveTask]] object to the Synthesis repository. Returns a '''Boolean''' value; when true, indicates that the task now exists in the repository.   
 
<noinclude>
== Syntax ==
== Syntax ==
''object''.'''Task.AddCorrectiveTask(''task'')'''
''object''.'''Task.AddCorrectiveTask(''task'')'''
Line 40: Line 40:
   MyRepository.Project.SetCurrentProject(1)   
   MyRepository.Project.SetCurrentProject(1)   
   MyRepository.Task.AddCorrectiveTask(NewTask)
   MyRepository.Task.AddCorrectiveTask(NewTask)
</noinclude>

Revision as of 18:07, 16 July 2015

APIWiki.png


Member of: SynthesisAPI10Repository

Saves a new cCorrectiveTask object to the Synthesis repository. Returns a Boolean value; when true, indicates that the task now exists in the repository.

Syntax

object.Task.AddCorrectiveTask(task)

where object is a variable that represents a Repository object.

Parameters

Name Description
taskborder="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse; text-align: left; cellborder"
Name Status The cCorrectiveTask object to be added.


Example

VBA

 Dim MyRepository As New Repository
 ...'Add code to connect to a Synthesis repository. 

 'Create a new corrective task. The following example creates a corrective task named "MyNewTask." 
 Dim NewTask As New cCorrectiveTask
 NewTask.Name = "MyNewTask"

 'Add the new task to project #1. The task will be visible in the Synthesis repository upon refresh. 
 MyRepository.Project.SetCurrentProject(1)   
 Call MyRepository.Task.AddCorrectiveTask(NewTask)
VB.NET

 Dim MyRepository As New Repository
 ...'Add code to connect to a Synthesis repository. 

 'Create a new corrective task. The following example creates a corrective task named "MyNewTask." 
 Dim NewTask As New cCorrectiveTask ("MyNewTask")

 'Add the new task to project #1. The task will be visible in the Synthesis repository upon refresh. 
 MyRepository.Project.SetCurrentProject(1)   
 MyRepository.Task.AddCorrectiveTask(NewTask)