f$GetProfile (f$LeseProfile)
f$GetProfile (f$LeseProfile)
Read a setting from an initialization file (e.g. "tdv.ini" in the Windows directory). If an entry exists in the ePOS database in the T_Settings table, the database entry has priority. If the entry from the text file must be read, this entry must be given a unique name.
Every customer can create their own initialization files in which department- or computer-specific data is saved. This can be done by creating a "<customer>.ini" file in the Windows directory with an ASCII editor where, for example, the language for dialog windows, logic management parameters such as "Sales" etc. or also certain data paths are saved.
Syntax: | Setting = f$GetProfile( Filename, Section, Keyword ) | |||
| Argument | Type | Meaning | |
| Filename | String | Name of the initialization file (e.g. "tdv.ini") or alternatively a file name with full path entry | |
| Section | String | Name of the section in the file (without brackets) | |
| Keyword | String | Keyword to be calculated | |
Result: | String | Setting found | ||
Example: | Calculating the path name for the TDV database. The "tdv.ini" file contains, among others, the following: ...[Data] Path = f$GetProfile('tdv.ini', 'Data', 'Data_Path' ) | |||