ReadInteger - cApplication

Reads integer data from the Windows Registry

Type: Function

Return Data Type: Integer

Parameters: String sSubKey String sValueName Integer iDefault

ParameterDescription
sSubKeyThe name of the Subkey to read the Value from
sValueNameThe name of the Value to read data from
iDefaultIf the Value could not be read, then the function will return the passed in value


Return Value

Data read from the Registry, or the passed in value if no value is found.


Syntax
Function ReadInteger String sSubKey String sValueName Integer iDefault Returns Integer

Call: Get ReadInteger sSubKey sValueName iDefault to IntegerVariable


Description

Use the ReadInteger function to read integer data from the Windows Registry. The base key that will be used is that returned by RegistryKeyString and you can specify a further subkey using the sSubKey parameter.

If you attempt to read a non-existent value, an error will be generated. Before trying to read a value, you should ensure that it exists using the ValueExists function.