![]()  | 
CRegistry:SetStr
The SetStr method saves a string value to a Registry key.
| 
 CRegistry:SetStr( sName, sValue ) 
 
  | 
The following script opens a key specified by sKeyName and saves a string value to the Registry under the name "MyVal":
| 
 R = CRegistry:Open( sKeyName )  | 
 -- open the key and create a CRegistry object  | 
| 
 R:SetStr( "MyVal", "my string" )  | 
 -- saves the value "my string" under the name "MyVal"  |