GetProfileIntΒΆ

GetProfileInt retrieves an integer from the specified section in an initialization file or the Windows registry.

rsVal = GetProfileInt(ssSection, ssKey)
rsVal = GetProfileInt(ssSection, ssKey, ssFileName)
rsVal = GetProfileInt(ssSection, ssKey, ssFileName, rsDefault)

Return Value

rsVal is a scalar integer number to be read from the specified file.

Parameters

ssSection

ssSection specifies the section containing the key name. The name of the section is case-independent.

ssKey

ssKey is the key name of the associated string is to be retrieved.

ssFileName

ssFileName is a string naming the initialization file.

rsDefault

rsDefault is a default value. If the key cannot be found in the initialization file or the Windows registry, GetProfileInt returns the default value.

Comment

UniPlot uses the key HKEY_CURRENT_USER\Software\RSB\UniPlot5 in the Windows registry.

Example

If the file d:/test.ini contains the following text

[Section]
Key=123

the call to GetProfileInt returns the number 123

ssString = GetProfileInt("Section", "Key", "d:/test.ini");

id-872017