DLLGetPrivateProfileString()

DLLWritePrivateProfileString()
  • SYNOPSIS:
    keyvalue$ = DLLGetPrivateProfileString(sFileName$,sSection$,sKey$,sDefault$,[iOutBufferSize])
  • DESCRIPTION:
    Reads a key from the given INI file.
  • PARAMETERS:
    sFileName$ The name of the INI file on disk that you wish to read from. Make sure you specify a full path here. If necessary, prefix CurrentDir().
    sSection$ The section you want to read from in the INI file. You do not need to specify the [] section brackets.
    sKey$ The keyname you want to read from in the INI file.
    sDefault$ A string you want returning if the key could not be found or the INI file does not exist.
    iOutBufferSize (optional) The size of the buffer to return the result in. Make sure this is large enough to hold your key data or it will not get returned completely. Defaults to 1000 characters.
  • RETURNS:
    String value containing the contents of the given key, or sDefault$ if the function failed or the key was not found.
  • EXAMPLE:
    See example001.bb.
  • BUGS:
    None Known.
  • SEE ALSO:
    DLLWritePrivateProfileString()

Return To Index
Problems with this command or bugs? EMail me at: mailto:loki.sd@blueyonder.co.uk

Section Last Updated: Saturday, February 2, 2002 1:43 PM GMT

All materials used in this help, related sources and binaries are (C)opyright Rob Hutchinson, Joseph Cox and Tarropithium Software 2002. All rights reserved. All software is provided without warranty unless otherwise stated.
Tarropithium Software or the authors will not be held liable for any damage or data loss that may occur during the application of this software. Use it at your own risk!