I wonder if someone has to share configuration manager, which will be configurable - not specific for his application, enable to write selected setting to .ini file (or xml or any else)?
If not, Im starting such a new job.
I want to declare sections, variable in section, variable types, variable ranges and which local or private variable must be se while read from .ini file.
Configuration manager writing to ini file
Moderator: Rathinagiri
- serge_girard
- Posts: 3168
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Configuration manager writing to ini file
Interesting ! Can you please explain a bit more?
Serge
Serge
There's nothing you can do that can't be done...
Re: Configuration manager writing to ini file
I'll try prepare some code next week.
I couldn't sleep last night and I thought a lot about this topic.
But, at weekend I don't like to work
I couldn't sleep last night and I thought a lot about this topic.
But, at weekend I don't like to work
- serge_girard
- Posts: 3168
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Configuration manager writing to ini file
ok ! Have a nice weekend!
Serge
Serge
There's nothing you can do that can't be done...
Re: Configuration manager writing to ini file
Hi Marek,
I do not exact know what your idea is. But in some of my programs I use something like :
And I use a menu item to change the settings:
Theo
I do not exact know what your idea is. But in some of my programs I use something like :
Code: Select all
MEMVAR cEmailType:="DefaultValue"
if !File("program.ini")
Begin ini file ("program.ini"")
Set Section "INVOICE" ENTRY "EmailType" To cEmailType
End ini
else
Begin ini file ("program.ini"")
Get cEmailType Section "INVOICE" ENTRY "EmailType"
End Ini
endif
Code: Select all
EXECUTE FILE GetStartUpFolder() + '\' + 'Program.ini'