INI Access

See Also

Category System Utilities
Default Catalog Visual FoxPro Catalog\Foundation Classes\Utilities
Class oldinireg
Base Class Custom
Class Library Registry.vcx
Parent Class registry

Remarks

This class provides a set of registry functions that access old INI-style file settings.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro places the class on the form. You can then specify the appropriate property values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
GetINIEntry method Retrieves information from INI entry.
Syntax: GetINIEntry(cValue, cSection, cEntry, cINIFile)
Arguments:
cValue specifies the value to be applied to cEntry.
cSection
specifies the section of the .ini file in which cEntry occurs.
cEntry
specifies the item to be assigned cValue.
cINIFile
specifies the name of the .ini file.
GetINISection method Retrieves information from INI section.
Syntax: GetINISection(@aSections, cSection, cINIFile)
Arguments:
aSections specifies an array of cSections included in the .ini file.
cSection specifies the section of cINIfile file to retrieve.
cINIFile specifies the name of the .ini file.
LoadINIFuncs method Loads functions needed for reading .ini files.
Syntax: LoadINIFuncs( )
Return: none
Arguments: none
WriteINIEntry method Writes a specific INI entry.
Syntax: WriteINIEntry(cValue, cSection, cEntry, cINIFile)
Arguments:
cValue specifies the new value.
cSection
specifies the section of cINIfile file to retrieve.
cINIFile specifies the name of the .ini file.