FileManagerFolder.FileItem



FileItem(lIndex As Long) As FileManagerFileItem

Parameters

lIndex As Long
Defines the position of the file.
ED
avaliable
RT
avaliable

Remarks

This method returns an object from type FileManagerFileItem.

Sample:


Sub FileItem()

Dim zFileManager As FileManager 'Object from type FileManager
Dim zFileManagerFolder As FileManagerFolder 'Child object from type FileManager
Dim zFileManagerItem As FileManagerFileItem 'Child object from type FileManagerFolder

'Fill the object
Set zFileManager = MyWorkspace.ActiveDocument.FileManager

'Read the "help list"
Set zFileManagerFolder = zFileManager.FolderItem(10)
'Read the first file in the list
Set zFileManagerItem = zFileManagerFolder.FileItem(0)
'Returns the filename of the file in the list
Debug.Print "Filename = " & zFileManagerItem.FileName

End Sub

See Also

FileManagerFolder, FileManagerFileItem