 |
ALPHA-VISION® Functions: aci.Usr_GetProfStrg
|
aci.Usr_GetProfStrg
SUMMARY
Get a string from a configuration file in
ini-file format.
SYNTAX
aci.Usr_GetProfStrg(
<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:string)
-
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
path = aci.Usr_GetProfStrg("vision2000.ini", "ZipArchives", "Path_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