Retrieves the name of the next project defined in CitectSCADA. Can be used with ProjectFirst to call projects currently defined in CitectSCADA.
Syntax
ProjectNext(Project)
Project:
The name of the project.
Return Value
The name of the next CitectSCADA project. If no project exists, an error is returned.
Note: For details on handling return and error values, see Error Handling.
Related Functions
ProjectSelect, ProjectSelected, ProjectFirst, 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