Command Reference : Function Reference : Function Reference: L
  
 
@loadprgini
Variable name value in an “.ini” file.
Syntax: @loadprgini("[section]name", "filename")
name: string
filename: string
section: (optional) string
Return: string
Returns a string containing the value of the specified variable name in the optionally specified section from the “.ini” file specified in filename. Both arguments must be enclosed in quotes.
If filename is not specified the default “.ini” is the one with the name of the current running program with extension “.ini.”
Note that the function returns a string, so to obtain a number you will have to convert the string using @val.
Examples
string val = @loadprgini("[section1]a", "myini.ini")
will save the value of “a” retrieved from section [section1] of the “.ini” file “myini.ini” located in your program file path.
Cross-references
See saveprgini.