<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > Registry > Registry_GetTxtBool |
Description
Get a number from a registry value stored as text.
Syntax
n = Registry_GetTxtBool(HKEY, MainKey, KeyName, DefaultValue)
Returns
Number.
Parameters
Name |
Type |
Optional |
Meaning |
HKEY |
String |
No |
Can be one of the following strings: "HKEYCR" (%HKEY_CLASSES_ROOT) "HKEYCU" (%HKEY_CURRENT_USER) "HKEYLM" (%HKEY_LOCAL_MACHINE) "HKEYU" (%HKEY_USERS) "HKEYCC" (%HKEY_CURRENT_CONFIG) |
MainKey |
String |
No |
The requested key path |
KeyName |
String |
No |
Name of the value to query |
DefaultValue |
Number |
No |
Default value to return in case KeyName not found or other problems |
Remarks
This function makes some assumption on the value found inside KeyName.
For example, if value found into KeyName is equal to "TRUE" or "YES" a %TRUE value is returned.
Restrictions
See also
Examples