CRegistry:GetBool
The GetBool method returns a Boolean (true or false) value form a registry key. The method also specifies a default value to be returned if the named value or key does not already exist in the Registry.
bValue = CRegistry:GetBool( sName, bDefault )
|
The following script opens a key specified by sKeyName and returns a Boolean value saved under the name "MyVal":
|
-- open the key and create a CRegistry object |
|
-- fetch the value of "MyVal", default to true |
|
-- Result: MyVal= 1 (0 or 1 if using %d format) |