backanim

  JR-FileViewer
Properties   Methods   Events
   

jrsoftlogo

            JRFileoperation.DeleteSelectedFiles

           

  Description:

Deletes the selected files. Set the AllowUndo property to
True to cause deleted files to be sent to the Recycle Bin.

           

  ico_syntax Syntax:

FileViewer1.FileCommand.DeleteSelectedFiles(ByVal FilesAndFolders As xFileHandle) As Long

 

  ico_einstellungen Adjustments:

FilesAndFolders

one of the xFileHandle values to select if only files only folders or files and folders will be deleted.

       

  ico_weitere Remarks:


Returns the number of deleted files .

Note: You can youse the ExecuteShellCommand for the listitem too
'filev1.ListItem(filev1.FirstSelectedItem.Key).ExecuteShellCommand (IcDelete)

 

  ico_einstellungen Example:

       

    FileV1.FileCommand.DeleteSelectedFiles (FilesAndFolders)