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

Syntax
GetProfString( <cSection>, <cEntry>, <cDefault> )   -->  cValue

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.

<cDefault> is a string to use if the specified entry is not
found.

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
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 returned.

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


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

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