CRegistry:SetNum
The SetNum method saves a numeric value to a Registry key.
CRegistry:SetNum( sName, nValue ) sName is the name of the value being saved. nValue is the numeric value to be saved. |
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" |