Repository.Project.GetCurrentProject: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) mNo edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude>Returns a '''[[NameIdPair Class|NameIDPair]]''' object that | <onlyinclude>Returns a '''[[NameIdPair Class|NameIDPair]]''' object that represents the name and ID pair of the active project.</onlyinclude> | ||
== Syntax == | == Syntax == |
Revision as of 23:19, 7 April 2016
Member of: SynthesisAPI.Repository
Returns a NameIDPair object that represents the name and ID pair of the active project.
Syntax
.Project.GetCurrentProject
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) 'Output example: Display the name and ID of the current project. Dim ProjectName As String Dim ProjectID As Integer ProjectName = MyRepository.Project.GetCurrentProject.Name ProjectID = MyRepository.Project.GetCurrentProject.ID MsgBox ("You are currently connected to: " & ProjectName & ", ID#" & ProjectID)