Reads a value from the Windows Registry.

public string GetRegistryValue(string ValueName,
	string DefaultValue,
	string Node);

Return Value

The value in the Registry if it was found or DefaultValue if not.


The name of the Value in the Registry.

The value to return if the name isn't found in the Registry.

The name of the node in the Registry that the value can be found in.

        If a value is passed and it doesn't contain a backslash (\), that node is used instead of Options. 
        For example, specifying "Data" means that "HKEY_CURRENT_USER\Software\CompanyName\ApplicationName\Data" is used. 
        If it does contain a backslash, then it must be a complete path to any place in the Registry, such as "HKEY_LOCAL_MACHINE\Software\Whatever\SomeNode".


See also:

Class SFQApplication

© Stonefield Software Inc., 2023 • Updated: 06/06/16
Comment or report problem with topic