CRegistry:GetNum
The GetNum method returns a numeric 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.
nValue = CRegistry:GetNum( sName, nDefault )
|
The following script opens a key specified by sKeyName and returns a numeric value saved under the name "MyVal":
|
-- open the key and create a CRegistry object |
|
-- fetch the value of "MyVal", default to 16.25 |
|
-- Result: MyVal= 12.484 (value already existed) |