CRegistry:SetStr


The SetStr method saves a string value to a Registry key.

Syntax

CRegistry:SetStr( sName, sValue )

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

bullet.gif    sValue is the string value to be saved.

Example

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"

Related Topics

CRegistry class, GetStr


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