Technical Reference > Graphics Builder Automation Interface > Project Functions > ProjectUpgradeAll

ProjectUpgradeAll

Performs a project upgrade on CitectSCADA projects. This function produces the same result as setting Upgrade=1 in the Citect.ini file.

Syntax

ProjectUpgradeAll

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, ProjectSelected, ProjectFirst, ProjectNext, ProjectFirstInclude, ProjectNextInclude, ProjectUpgrade, ProjectPackLibraries, ProjectUpdatePages, ProjectPackDatabase, ProjectCompile

Example

On Error Resume Next
Err.Clear
GraphicsBuilder.ProjectUpgrade
If Err.Number <> 0 Then
Debug.Print "Error in ProjectUpgrade"
Err.Clear
Else
Debug.Print "ProjectUpgrade OK"
End If