Repository.Project.SetCurrentProject

From ReliaWiki
Revision as of 17:55, 27 February 2014 by Chris Kahn (talk | contribs)
Jump to navigation Jump to search


Opens (sets as current) a project with the specified ID. Returns True if successful, otherwise returns False.

Syntax

  • SetCurrentProject( ProjectID As Integer)As Boolean

Parameters

ProjectID: Set the current project to this ID.

Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Set the current project to the desired ID.

       Dim IDChangeSuccess As Boolean = False
       If MyRepository.SetCurrentProject(1) Then
          IDChangeSuccess = True
       End If