G
Guillem Serra
Which is the best way to manage the applications parameters.?
I have an application that have many parameters and they can grow in the
future. (I allow the users configure some aspects of the behavior of the
app.)
I look for a way easy to add new parameters and maintain, fast to retrieve
the parameters values.( and of course stability)
I imagine something based on a table with one record for each parameter:
(ParameterName and ParameterValue), which would be loaded in private memory
variables at start time.
It is easy to maintain (create/modify a record) and fast to retrieve (from
memory). But, for each parameter I need to create also a small function to
retrieve it.
Is it better to do it by means of a collection?, or an array?, or by
registry keys?, or another new way at all?.
Do someone have experience in which is the best way to manage this?.
Thanks in advance. Any advice will save me a lot of time.
Guillem
I have an application that have many parameters and they can grow in the
future. (I allow the users configure some aspects of the behavior of the
app.)
I look for a way easy to add new parameters and maintain, fast to retrieve
the parameters values.( and of course stability)
I imagine something based on a table with one record for each parameter:
(ParameterName and ParameterValue), which would be loaded in private memory
variables at start time.
It is easy to maintain (create/modify a record) and fast to retrieve (from
memory). But, for each parameter I need to create also a small function to
retrieve it.
Is it better to do it by means of a collection?, or an array?, or by
registry keys?, or another new way at all?.
Do someone have experience in which is the best way to manage this?.
Thanks in advance. Any advice will save me a lot of time.
Guillem