Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getpvprofint()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetPvProfInt()
Return an integer from an entry in an application's initialisation file
------------------------------------------------------------------------------

Syntax
GetPvProfInt( <cSection>, <cEntry>, <nDefault>, <cFile> )   -->   nValue

Arguments
<cSection> is the name of a section in the initialisation file.

<cEntry> is the name of an entry within the <cSection> section
in the file.

<nDefault> is an integer value to use if the specified entry
is not found.

<cFile> is the name of the file.  If no path is specified, the
Windows directory is searched.

Returns
If the entry is found and the corresponding value is a valid
integer, its value is returned.

If the entry is found and the corresponding value is not a
valid integer, zero is returned.

If the entry is not found, the <nDefault> value is returned.

Description
This function is like GetProfInt(), except the application's
private file is searched.

Example
// Suppose APP.INI contains:
//        [ClipApp]
//        level=1
? GetPvProfInt( "ClipApp", "level", 0, "APP.INI" )     // result: 1


See Also: GetProfInt() GetPvProfString() WritePvProfString()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson