Repository.Project.SetCurrentProject: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:API}}{{Template:APIBreadcrumb|10|.[[Repository Class|Repository]]}} | |||
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>Connects to a project that you specify and sets it as the current (active) project. This is similar to opening the first project shown in the project list of a Synthesis application. Returns a '''Boolean''' value; when true, indicates a successful connection to the project.</onlyinclude> | ||
== Syntax == | == Syntax == | ||
'''.Project.SetCurrentProject'''(''ProjectID'') | '''.Project.SetCurrentProject'''(''ProjectID'') | ||
Line 25: | Line 23: | ||
{{APIComment|'Set the first available project in the repository as the current project.}} | {{APIComment|'Set the first available project in the repository as the current project.}} | ||
MyRepository.Project.SetCurrentProject(1) | MyRepository.Project.SetCurrentProject(1) | ||
Revision as of 22:07, 20 July 2015
Member of: SynthesisAPI10.Repository
Connects to a project that you specify and sets it as the current (active) project. This is similar to opening the first project shown in the project list of a Synthesis application. Returns a Boolean value; when true, indicates a successful connection to the project.
Syntax
.Project.SetCurrentProject(ProjectID)
Parameters
ProjectID
- Integer. The ID number of the project. (Required)
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)