IniFile: GetString

GetString

Returns the string value of the specified key in the specified section of an INI file.



 Public Function GetString(
	  ByRef Section As String,
	  ByRef Key As String,
	  Optional ByVal Default As String ) As String

Parameters

Section
[ByRef] String. The section within the INI file to search for the key.
Key
[ByRef] String. The key in the section of an INI file to retrieve the value of.
Default
[ByVal] Optional. String. The default value to return if the key is not found in the section.

An empty string is a valid value in an INI file. Testing for an empty string does not mean the value was not found.

Return Values

String - 

See Also

Project CorLib Overview

Class IniFile Overview