Microsoft Access ActiveX custom controlsMicrosoft Access ActiveX controls with Total Access ComponentsCreate dazzling Microsoft Access User Interfaces with Total Access Components Microsoft Access Controls from Total Access Components Free Trial Download

Read and Edit Windows INI Files

Easily read and edit values in Windows Initialization (INI) files without using Windows API calls.

Early versions of Windows stored settings in these initialization files and some programs continue to do so.

INI files are simple text files that consist of Sections and Keys. A section is identified by title text enclosed in square brackets ( [ ] ). All entries after the title, and up to the next title are part of that section.

Using the INI File Control

Using the INI File control is very easy since it only has one property and two methods.

First, identify the location and name of the INI file using the FileName property. Then, use the GetValue method to retrieve a value from the INI file, or the SetValue method to write text.