CRegistry:SetBool
The SetBool method saves a Boolean (logical) value to a Registry key. The value being saved must evaluate to true or false.
CRegistry:SetBool( sName, bValue ) where sName is the name of the value being saved. bValue is the Boolean value to be saved. |
The following script opens a key specified by sKeyName and saves 3 Boolean values to the Registry under the names "MyVal 1":. "MyVal 2", and "MyVal 3".
|
-- open the key and create a CRegistry object |
|
-- saves the value true under the name "MyVal 1" |
|
-- saves the value true |
|
-- saves true only if a equals 4 |