Repository.Project.SetCurrentProject: Difference between revisions
Jump to navigation
Jump to search
Albert Szeto (talk | contribs) No edit summary |
Albert Szeto (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
Sets the current project to the specified Project ID. Returns the Boolean status. | Sets the current project to the specified Project ID. Returns the Boolean status. | ||
== | == Method Syntax== | ||
{{APIName|SetCurrentProject(}} | |||
{{ | {{APIPrefix|ByVal}} | ||
{{APIName|ProjectID}} | |||
{{APIPrefix|As Integer}} | |||
{{APIName|)}} | |||
{{APIPrefix|As Boolean}}<br> | |||
{{APIComment|Opens (sets as current) a project with the specified ID. If 0 is passed, a fist available project will be set as current.}} | |||
== Parameters == | == Parameters == |
Revision as of 17:29, 18 September 2013
Sets the current project to the specified Project ID. Returns the Boolean status.
Method Syntax
SetCurrentProject(
ByVal
ProjectID
As Integer
)
As Boolean
Opens (sets as current) a project with the specified ID. If 0 is passed, a fist available project will be set as current.
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