Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions Introduction > ProjectSet

ProjectSet

Sets either the name or the path of the project to be run next time CitectSCADA 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 is returned.

Related Functions

Shutdown, ShutdownMode, ProjectRestartGet

Example

/* Set the next project to "Demo". */
ProjectSet("Demo");
/* Set the next project to "MyPath". */
ProjectSet("I:\CITECT\PROJECT1\MYPATH");

See Also

Miscellaneous Functions


[an error occurred while processing this directive]