Retrieves the name of the project that is currently selected in CitectSCADA.
Syntax
ProjectSelected(Project)
Project:
The name of the project.
Return Value
0 (zero) if successful, otherwise an error is returned.
Note: For details on handling return and error values, see Error Handling.
Related Functions
ProjectSelect, ProjectFirst, ProjectNext, ProjectFirstInclude, ProjectNextInclude, ProjectUpgrade, ProjectUpgradeAll, ProjectPackLibraries, ProjectUpdatePages, ProjectPackDatabase, ProjectCompile
Example
On Error Resume Next
sProject = GraphicsBuilder.ProjectSelected
If Err.Number <> 0 Then
Debug.Print "Error in ProjectSelected"
Err.Clear
Else
Debug.Print "Selected project:", sProject
End If
Debug.Print "list of projects:"
sProject = GraphicsBuilder.ProjectFirst
While Err.Number = 0
Debug.Print sProject
sProject = GraphicsBuilder.ProjectNext
Wend