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 ) sName is the name of the value being saved. bValue is the Boolean value to be saved. The argument is evaluated to true or false. |
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 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.