SetRegistry

The SetRegistry function allows a script to write a value to the Geo SCADA User Registry, which comprises part of the logged on user's Geo SCADA Expert User Account (or, with Original WebX, the Windows Registry on the local client machine).

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 Geo SCADA User Registry, which comprises part of the logged on user's Geo SCADA Expert User Account in the database (or the Windows Registry on the client machine if using Original WebX). (The Geo SCADA Expert User Registry is used to store name/value pairs in the database; it does not comprise entries in the Windows Registry.)

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 2020