getValue

>>-getValue(-+------------+-+--------+-)-----------------------><
             +-key_handle-+ +-,value-+

Retrieves the data and type for a named value of a given key. The result is a compound variable with suffixes data and type. If key_handle is omitted, CURRENT_KEY is used. If named value is blank or omitted, the default value is retrieved. Example:

myval. = rg~getvalue(,"filesystem")        /* current key */
say "Type is" myval.type
if myval.type = "NORMAL" then say "Value is" myval.data
myval. = rg~getvalue(mykey)
say "my default value is:" myval.data
myval. = rg~getvalue(mykey,"")
say "my default value is:" myval.data

Possible types: NORMAL, EXPAND, MULTI, NUMBER, BINARY, NONE, OTHER.