Profile.GetValue() Method

Retrieve a string value from the registry.

Syntax

Profile.GetValue(Name, [SubKey], [DefaultValue])

The method syntax has these parts:

Part Description
Name (String) name of the value to retrieve
SubKey (String) sub-key under which to retrieve the value (see remarks)
DefaultValue (String) default value in case desired value is not present in registry (default = "")
Return (String) The desired string value from the registry, or the default value

Remarks

SubKey may contain backslash separated path to sub-key . Name may be an empty string for the unnamed value.
Before using this method, be sure you understand relative versus absolute SubKey values. See the Profile Object documentation for details.