GetIniString

Top  Previous  Next

Method

GetIniString(strSection, strKeyName, strIniFileName, OPTIONAL strDefaultValue)

Parameters

strSection (string - The Section of the INI file)

strKeyName (String - The name of the key)

strIniFileName (String - The full path/filename of the ini file)

strDefaultValue (Optional String = "" can be passed if you always want something to be returned even if the Key is empty)

Returns

String  (if there is no data in the INI file, the value you pass in strDefaultValue will be returned)

Example

strMyDBName = oUTILITIES.GetIniString("DATABASE","NAME","C:\MyData\MyIniFile.ini")

 

 

Is a simple wrapper for the MS Windows GetPrivateProfileString() API function.