This documentation is archived and is not being maintained.

Visual Basic Extensibility Reference

Visual Studio 6.0

FileNames Property

See Also   Example   Applies To

Returns the current path name(s) in which the component will be stored.



The FileNames property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index A long integer specifying the location of the filename in the indexed string to return.


The path name returned will always be provided as an absolute path (for example, "c:\projects\myproject.vbp"), even if it is shown as a relative path in Visual Basic (such as "..\projects").

The number of entries in the indexed string is determined by the FileCount property setting. The indexed string for classes and modules contains only one filename, while the indexed string for forms contains both the .Frm and .Frx filename for the form. The values of the filenames are updated when the SaveAs method is invoked on the object.