IniFile: GetCurrency

GetCurrency

Returns a Currency value from the specified key in the specified section of an INI file.



 Public Function GetCurrency(
	  ByVal Section As String,
	  ByVal Key As String,
	  Optional ByVal Default As Currency ) As Currency

Parameters

Section
[ByVal] String. The section within the INI file to search for the key.
Key
[ByVal] String. The key in the section of an INI file to retrieve the value of.
Default
[ByVal] Optional. Currency. The default value to return if the key is not found in the section, or the value could not be converted to a Currency.

Return Values

Currency - 

Remarks

An INI file contains all values as strings. The value is converted back into a Currency using the CCur function. If an error occurs, then the default is returned.

See Also

Project CorLib Overview

Class IniFile Overview