$GETREGVALUE (get a registry value)
$GETREGVALUE acquires the specified registry value.
Syntax
$GETREGVALUE('registry-name')
Values
-
registry-name
Specifies a registry name expressed as a character string.
Status
The following table lists and describes the possible statuses:
Status |
Description |
---|---|
NORMAL |
Normal end |
ERROR |
Registry acquisition failed. |
Script execution interrupted |
Indicates one of the following:
|
Example
The following example acquires the value of KEYVERSION (1050):
[SET_VALUE] AIMVERSION = $GETREGVALUE('KEYVERSION') STATUS = $GETSTATUS() [IF] STATUS = NORMAL [THEN] [SET_VALUE] MSG = 'AIMVERSION = ' + AIMVERSION $ECHO(MSG) [ELSE] [SET_VALUE] MSG = '$GETREGVALUE (' + STATUS + ')' $ECHO(MSG) [IF_END]
- Execution result:
-
AIMVERSION = 1050