FileName

Top  Previous  Next

 

 

FileName

CSTRING(File:MaxFilePath)

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