# Enumerate values
> [HTML Version](enumeratevalues.htm)
**xcall MIAMEX, MX\_REGISTRY, REGOP\_ENUMVALS, hkey, name, index, type, value, status**
This is used to list the named values for the opened key.
**Parameters**
_hkey_ \[in\]
must be set as in opcode 3 ([Set](set_mx138.htm.md))
_index _([Num](num.htm.md)) \[in\]
should be set to 0 for the first _value_, and incremented for each subsequent _value_. There is no particular order to the _values_, so do not put any special significance on _index_.
_name _([String](string.htm.md)) \[out\]
will return the value name corresponding to _index_.
_type_ ([Num](num.htm.md)) \[out\]
will return the type of the value (see types under [Set](set_mx138.htm.md)).
_value_ (type depends on _type_) \[out\]
will return the value of the named item. See [Read](read_mx138.htm.md) for notes on how to map it to support multiple types.
_status _(F6) \[out\]
0 for success, else error code. Error 259 indicates that there are no more values to enumerate.