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>writeprofstring()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WriteProfString()
Write a string into an entry in WIN.INI
------------------------------------------------------------------------------

Syntax
WriteProfString( <cSection>, <cEntry>, <cNewString> )   -->  lSuccess

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

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

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

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

Description
The file WIN.INI in the Windows directory (e.g. C:\WINDOWS) is
examined for an entry like:
          [ <cSection> ]
                   .  .  .
          <cEntry> = some_characters
and the value (here, some_characters) is changed.

If the section or entry is not found, it is created.

If <cNewString> is NIL, the entry is deleted.
If <cEntry> is NIL, the entire section is deleted.

Example
// Suppose WIN.INI contains:
//        [ClipApp]
//        level=expert
? GetProfString( "ClipApp", "level", "novice" )   // result: expert
WriteProfString( "ClipApp", "level", "novice" )
? GetProfString( "ClipApp", "level", "" )         // result: novice


See Also: GetProfInt() GetPvProfInt() WritePvProfString()

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