CRegistry:GetInt
The GetInt method returns an integer number 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:GetInt( sName, nDefault ) nValue is an integer number value. sName is the name of the value to fetch. nDefault is the default integer value returned if sName is not found in the Registry. |
The following script opens a key specified by sKeyName and returns an integer value saved under the name "MyVal":
|
-- open the key and create a CRegistry object |
|
-- fetch the value of "MyVal", default to 108 |
|
-- Result: MyVal= 412 (value already existed) |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.