Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling Configuration Settings

Status
Not open for further replies.

MasterRacker

New member
Oct 13, 1999
3,343
US
I have an app where I want to configure the front-end via settings stored in a local table. I'm planning on reading all the settings in at startup and they need to be available throughout the app.

I've been thinking of creating a custom class to hold key-value pairs then using either a global collection or global array of these to hold what gets read in from the table. Anywhere the app needs to now how it's "configured" I can loop through the collection to find the specific setting I'm looking for.

Is there a better way to do this?

_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top