CRegistry:SetBool CRegistry:SetNum

CRegistry:SetInt


The SetInt method saves an integer value to a Registry key.

Syntax

CRegistry:SetInt( sName, nValue )

bullet.gif    sName is the keyword (name) of the value being saved.

bullet.gif    nValue is the integer value to be saved.

Example

The following script opens a key specified by sKeyName and saves an integer value to the Registry under the name "MyVal":

R = CRegistry:Open( sKeyName )

-- open the key and create a CRegistry object

R:SetInt( "MyVal", 75 )

-- saves the value 75 under the keyword "MyVal"

Related Topics

CRegistry class

GetInt

 


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.