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>getpvprofstring()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetPvProfString()
Return a string from an entry in an application's initialisation file
------------------------------------------------------------------------------

Syntax
GetPvProfString( <cSection>, <cEntry>, <cDefault>, <cFile> )   -->   cValue

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.

<cDefault> is a string 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, its value is returned.  If the entry is
not found, the <cDefault> value is returned.
If <cEntry> is a null string (""), all entries for <cSection>
are returned, separated by null (chr(0)) bytes.

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

Example
// Suppose APP.INI contains:
//        [ClipApp]
//        level=expert
? GetPvProfString( "ClipApp", "level", "novice", "app.ini" )
// result: expert


See Also: GetProfString() GetPvProfInt() WritePvProfString()

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