You are here: Core Reference > Coding > Scripting > SetRegistry

SetRegistry

The SetRegistry function allows a script to write a value to a registry,

Syntax

SetRegistry (Name, Value)

Description

Writes a value to the registry.

Arguments

Name {string}

The Name defines the registry that is to be written to by the script. The Name entry in your script has to match the name of the required registry.

 

Value {string or integer}

The value that is to be written to the registry.

Returns

None.

NOTE: The registry values are usually stored in the HKEY_CURRENT_USER\Software\Schneider Electric\ClearSCADA\ViewX/Mimics key in the registry on your client PC.

Example:

SetRegistry "CoreReg", 58

This writes the value 58 to the CoreReg registry.


ClearSCADA 2015 R2