getValueString

getValueString

Retrieves the value of a key when that value is a string.

Method of

WinReg object

Syntax

String getValueString ( String subkey, String valname);

Parameters

The getValueString method has the following parameters:

subkey
The key path to the appropriate location in the key hierarchy, such as "Software\\Netscape\\Navigator\\Mail".
valname
The name of the value-name/value pair whose value you want.

Returns

A string representing the value of the named value-name/value pair or null if there's an error, the value is not found, or the value is not a string.

Description

The getValueString method gets the value of a string. If the value is not a string, use the getValue method instead.

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Fredchat, Rod Whiteley
 Last updated by: Sheppy,