FileManagerFolder.DeleteFile



DeleteFile(lIndex As Long) As Boolean

Parameters

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

Remarks

This method allows the deletion of files. Returns true if successfull.

Sample:


Sub DeleteFile()

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

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

'Read the "language list"
Set zFileManagerFolder = zFileManager.FolderItem(9)
'Delete the first file in the list
zFileManagerFolder.DeleteFile (0)

End Sub

See Also

FileManagerFolder