| Subject |
Re: path setting in ini file |
| From |
Heinz Kesting <Nobody@Nowhere.com> |
| Date |
Mon, 2 Aug 2021 19:56:57 +0200 |
| Newsgroups |
dbase.getting-started |
Hi Mustansir,
>
> Perhaps I shall put my point in this way. I have attach the snapshot of settings in my ini file. There is command PATH=d:\tmj\pay. How can I use this path in my app.
>
Please take a look at INI.CC from the DUFLP, everything you need when
working with INI entries is there, with good examples in the header.
Note that you need to provide STRINGEX.CC, too. Here is a little code
snippet how I use it to store the maximized value when closing a form:
set procedure to "YOUR_PATH_TO_INI.CC\ini.cc"
set procedure to "YOUR_PATH_TO_STRINGEX.CC\stringex.cc"
oMyIni = new Ini(set("directory") + "\YourApp.ini")
oMyIni.SetValue("Desktop", "Maximized", str(0, 1)) // not maximized
To read the value of the DBSYSTEM entry in the CommandSettings section
you would use:
cPath = oMyIni.GetValue("CommandSettings", "DBSYSTEM")
Hope I could help.
Kind regards, Heinz
|
|