CRegistry:SetNum


The SetNum method saves a numeric value to a Registry key.

Syntax

CRegistry:SetNum( sName, nValue )

bullet.gif    sName is the name of the value being saved.

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

Example

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

R = CRegistry:Open( sKeyName )

-- open the key and create a CRegistry object

R:SetNum( "MyVal", 53.412 )

-- saves the value 53.412 under the name "MyVal"

Related Topics

CRegistry class, GetNum


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