CRegistry:GetNum CRegistry:GetStr

CRegistry:SetNum


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

Syntax

CRegistry:SetNum( sName, nValue )

  • sName is the name of the value being saved.
  • 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, GetNum