DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


GetRegValueAsBoolean

Declaration: GetRegValueAsBoolean (RootKey: TRegRootKey; SubKey, ValueID: string): boolean;
The function GetRegValueAsBoolean reads a value of the Windows registry and interprets and returns it as a boolean value. The parameter RootKey defines the root key and can the parameter SubKey specifies the key (including its path) used within the branch of the root key. The parameter ValueID specifies the value to be retrieved.

The function returns the registry value always as a boolean value, no matter in which format the value is stored. If the type of the stored value is unknown, non-existant or not supported then the function returns a FALSE value. If the value is a string containing the word "TRUE" the function returns a TRUE value, in any other case it returns a FALSE value (however, the values are not case-sensitive).