aci.Usr_GetProfNum

SUMMARY

Get a number from a configuration file in ini-file format.

SYNTAX

aci.Usr_GetProfNum(<inifile>, <section>, <entry>, <default>)

ARGUMENTS

inifile (type:string)
The configuration file.
section (type:string)
the section within the configuration file.
entry (type:string)
The entry within the section.
default (type:number)
The default if the entry cannot be found.
You may specify a boolean value for this argument in which case true will be represented by 1 and false will be represented by 0.

RETURN VALUES

1 (type:integer)
Returns the entry from the specified configuration file. If either the file or the section or the entry does not exist: returns <default>.

EXAMPLES

write_intv = aci.Usr_GetProfNum("vision2000.ini", "ZipArchives", "WriteInterval", 1)
		


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times