![]()  | 
CRegistry:SetInt
The SetInt method saves an integer value to a Registry key.
| 
 CRegistry:SetInt( sName, nValue ) 
 
  | 
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 name "MyVal"  |