I made a free open source module to supply integer and string settings to a program. See
https://github.com/avwohl/xojo_AVW_settings
Typical usage to fetch a setting:
connect_to(app.settings.get_string(“host”),app.settings.get_integer(“port”))
The settings are read from a config file, example:
host:foo.com
port:25
settings comments look like this
settings can include other files
include:common.cfg