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!

Simple way of manipulating your own .ini file

Status
Not open for further replies.

kindred

Programmer
Feb 28, 2001
50
US
Is there a simple way to access/modify your own .ini file for your program?


Thanks,
Stephen Hardie
 
I have resorted:
1. When designing the application I created a system table to hold the INI info
2. When I need to change the info, I alter the info in the table.
3. Create a totaly new INI file from the table.
David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
If you need the "old style" INI file setting, see the on-line help (F1 in VFP):
Contents
Visual FoxPro documentation
Samples
Visual FoxPro foundation classes
"INI access"

I use my own base-class for it, if you need a code-example, I'll post it.

Another solution is storing them settings in a settings-table.

Both solutions require some coding, and both work perfectly well.
Diederik Vermeeren
verm1864@exact.nl
 
IF you download the latest version of the free CodeBook framework there is a classlibrary called:

cUtils.VCX

This classlibrary contains base classes to manipulate INI file settings as well as registry settings.
- cIniFile
- cRegistry

The use of these classes is quite straightforward.

Downloadable from:
HTH,
Weedz (Wietze Veld)
veld4663@exact.nl

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top