CRegistry:GetStr
The GetStr method returns a string value form a registry key. The method also specifies a default value to be returned if the named value or key does not already exist in the Registry.
sValue = CRegistry:GetStr( sName, sDefault )
|
The following script opens a key specified by sKeyName and returns a string value saved under the name "MyVal":
|
-- open the key and create a CRegistry object |
|
-- fetch the value of "MyVal", default to "def" |
|
-- Result: MyVal= 'def' (value did not already exist) |