User Tools

Site Tools


filename.htm
Navigation:  ABC Library Reference > INIClass > INIClass Properties >====== FileName C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page
FileName CSTRING(File:MaxFilePath)

blk2blue.jpg

The FileName property contains the name of the managed storage medium (INI file or system registry key). The INIClass methods use the FileName property to identify the storage medium.

If a full path is specified, and the INIClass Init Method has specified INI file storage, the INIClass looks for the file in the specified path. If no path is specified, the INIClass looks for the file in the Windows directory. If no name is specified (''), the INIClass uses the WIN.INI file. For example:

FileName Property Resulting INI File
' ' c:\Windows\WIN.INI
'invoice.cfg' c:\Windows\invoice.cfg
'.\invoice.cfg' current directory\invoice.cfg
'c:\invoice\invoice.cfg' c:\invoice\invoice.cfg

If the INIClass Init Method has specified system registry storage, the INIClass looks for the specified registry key.

The Init method sets the contents of the FileName property.

Implementation:

The INIClass methods use the FileName property as the file parameter in GETINI and PUTINI statements. See the Language Reference for more information.

See Also:     Init

filename.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1