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

Syntax
WritePvProfString( <cSection>, <cEntry>, <cNewString>,
                   <cFile> )   -->   lSuccess

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.

<cNewString> is the string to be written in the entry.

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

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

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

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

WritePvProfString( "ClipApp", "level", "novice", "app.ini" )

? GetPvProfString( "ClipApp", "level", "", "app.ini" )
// result: novice


See Also: GetPvProfInt() GetPvProfString() WriteProfString()

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