SetRegistry

The SetRegistry function allows a script to write a value to the registry.

From Geo SCADA Expert 2019 onwards, the location at which the value is stored varies, depending on the type of client from which the function is triggered and the user that is logged onto that client:

NOTICE

LOSS of data

You can store a maximum of 1000 registry entries per user. Ensure that client side scripts do not create more than this number of registry entries. Any registry entries in excess of this number are discarded.
Failure to follow these instructions can result in the loss of additional registry entries.
Syntax

SetRegistry (Name, Value)

Description

Writes a value to the registry on the server (or the registry on the client machine if using Original WebX).

Arguments

Name {string}

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

 

Value {string or integer}

The value that is to be written to, and associated with, the above registry entry.

Returns

None.

Example:

SetRegistry "CoreReg", 58

This writes the value 58 to the CoreReg registry entry.

Further Information

If required, an administrator can clear a user's registry settings: see Clear Registry in the Geo SCADA Expert Guide to Security.


Disclaimer

Geo SCADA Expert 2019