Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

EnumValue( )

Action: Allows you to list the names of the registry entries contained in a specific key or subkey.
 
Syntax: ENUMVALUE ("subkey", index)
 
Parameters: Subkey

Specifies the key or subkey for which you want to enumerate the value entries.

Index

A numeric value representing the position of the entry whose name you want to discover. Zero (0) represents the first entry in the subkey.
Returns:
String Function returns a string representing the entry in the specified key or subkey.
259 Subkey does not exist.
Error code Function failed.
 
See Also: EnumKey( )
 
Example:

$Index = 0
:Loop1
$ValueName = ENUMVALUE ("HKEY_CURRENT_USER\Console\Configuration", $Index)
If @ERROR = 0
? "Name found: $ValueName"
  $Index = $Index + 1
goto Loop1
Endif