Repository.Project.SetCurrentProject: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:




<onlyinclude>Connects to a project that you specify and sets it as the current (active) project. Returns a '''Boolean''' value; when true, indicates a successful connection to the project.</onlyinclude>
<onlyinclude>Connects to a project in a Synthesis repository and sets it as the current (active) project. Returns a '''Boolean''' value; when true, indicates a successful connection to that project.</onlyinclude>


== Syntax ==
== Syntax ==
Line 9: Line 9:
=== Parameters ===
=== Parameters ===
''ProjectID''
''ProjectID''
:Integer. The ID number of the project. (Required)
:Required. Integer. The ID number of the project.





Revision as of 15:42, 25 August 2015

APIWiki.png


Member of: SynthesisAPI10.Repository


Connects to a project in a Synthesis repository and sets it as the current (active) project. Returns a Boolean value; when true, indicates a successful connection to that project.

Syntax

.Project.SetCurrentProject(ProjectID)

Parameters

ProjectID

Required. Integer. The ID number of the project.


Example

VBA|VB.NET

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


 'Set the first available project in the repository as the current project. 
  MyRepository.Project.SetCurrentProject(1)