x = Pm.IniFileRead(sFile, sSection, sKey, vDefault, vbLong)
|sFile||(String) The file name with the path. If a full path is not entered, then it is completed relatively according to the application file folder. |
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
|sSection||(String) Section name (the section is in INI file in the brackets) without the brackets|
|sKey||(String) Key name of the read item|
|vDefault||(Variant) Value that has to be returned if reading the item fails|
|Dt||[optional] (Long) Data type of the read value. See VBScript constants of data types. The default value is vbString.|
Val = Pm.IniFileRead("#cfg:file.ini", "Data", "Value1", "1.0", 4) '4=vbSingle, 8=vbString, ...