ProjectSet
- Last UpdatedJul 18, 2023
- 1 minute read
Sets either the name or the path of the project to be run next time Plant SCADA is restarted. The project path is written to the [CtEdit]Run parameter.
Syntax
ProjectSet(sProject)
sProject:
The name of the project (for example "DEMO"), or the path to the project. If you specify the path to the project, you need to use the full path. If you do not specify a project, the current project will be used.
Return Value
0 (zero) if successful, otherwise an error code is returned.
Related Functions
Shutdown, ShutdownMode, ProjectRestartGet
Example
/* Set the next project to "Demo". */
ProjectSet("Demo");
/* Set the next project to "MyPath". */
ProjectSet("I:\Plant SCADA\PROJECT1\MYPATH");