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

KiXtart 2001 Manual

ReadValue( )

Action: Reads the value of a registry entry.
 
Syntax: READVALUE ("subkey", "entry")
 
Parameters:

Subkey

Identifies the subkey containing the entry.

Entry

Identifies the entry whose value you want to discover. To read the default entry of a key, specify an empty string as the entry name ().

Returns:
0 Function returns ASCII representation of the specified registry entry
Error code Function failed

REG_MULTI_SZ (multi-string) variables are returned with the pipe symbol ( | ) used as the separator between strings. If a string contains a pipe symbol character, it is represented by two pipe symbol characters ( || ).

REG_DWORD variables are returned in decimal format.
 
See Also: AddKey( ), DelKey( ), DelTree( ), ReadType( ), ReadValue( ), WriteValue( )
 
Example:

$Rows = ReadValue ("HKEY_CURRENT_USER\Console\Configuration", "WindowRows")
If @ERROR = 0
  ? "Number of window-rows: $Rows"
Endif