Animating an Object to Write a Value to the Registry
You can animate an object so that when it is selected, it writes a value to the registry. Common uses for this type of animation include applying different filters to embedded lists when an object is selected, and displaying different layers when an object is selected.
When animating an object to write a value to the registry, you have to:
- Set the PickType to 8 (for Registry)
- Use the PickParam expression to define the value that is to be written to the registry.
The syntax used for the PickParam expression is specific to registry writes. Use one of the following:
- <keyname>(<numericvalue>)
- <keyname>("<stringvalue>")
When you type this expression into the Expression window, you have to enclose the expression within single straight quotation marks. (You access the Expression window by selecting the Edit button on the Animations window.)
For example, if you type 'mykey("fred")' into the Expression window, it will set the key value mykey to the string value fred.
For information on animations that use the registry pick action, see Local Variables (Registry Key Settings).
From Geo SCADA Expert 2019 onwards:
- The location from which the REGISTRY function retrieves a value varies, depending on the type of client from which the function is triggered and the user that is logged onto that client. With ViewX and Virtual ViewX clients, the value is now stored in the registry of the User Account database item that is associated with the logged on user.
- You can use the REGISTRY function if you are accessing the database as the Guest User or Super User, but with such users the value is only retained during the logged in session. These User Accounts do not retain and store the value.
For more information, see REGISTRY.