Home » Community » Newbie corner » Initial settings for U++ application
Re: Initial settings for U++ application [message #27288 is a reply to message #27285] |
Sun, 11 July 2010 02:22   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Thanks Honza
dolik.rce wrote on Sun, 11 July 2010 01:05 | (I really don't like apps which store their settings in windows registry 
Serialize() methods
ConfigFile()
In my opinion, for simple apps, with low and fixed number of options, the best solution is simple text file. Something like ini, or even simpler.
|
I definitely do not want to tinker with the registry!
A simple text file would seem to be the easiest.
Here is a few that I have:
Set units m, km, ft, mi or nmi - - un = 0 to 4
Set deg, dm or dms - - dms = 0 to 2
Set precision - - dp = 3, 4, 5, 6 or 8
Set goto direct/flyto - - gt = 0, 1
Set draw - - dr = 0, 1
fn <<= Nvl(r_d, recent_dir);
There are several others that just have int variables as above.
So all the config file needs is:
un = 2
dms = 1
dp = 4
gt = 0
dr = 1
...
...
recent_dir = c:\wwdata
So just a text file that would be read and set the variables.
On exit write the variable values to the text file.
Neil
[Updated on: Sun, 11 July 2010 02:31] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 27 22:23:53 CEST 2025
Total time taken to generate the page: 0.00876 seconds
|