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

ProjectUpgrade

Performs a project upgrade on the current CitectSCADA project.

Syntax

ProjectUpgradeAll

Return Value

0 (zero) if successful, otherwise an error is returned.

Note: This function displays a cancel dialog. It will exit and report error code E_ABORT, if the cancel button is pressed. For details on handling return and error values, see Error Handling.

Related Functions

ProjectSelect, ProjectSelected, ProjectFirst, ProjectNext, ProjectFirstInclude, ProjectNextInclude, ProjectUpgradeAll, 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