Method: Remove for FileList <DropInformation>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: Remove for FileList <DropInformation>
Method: Remove for FileList <DropInformation>
Deletes an element in a file list you drag to another object. You can use this method in the EventDragStart event in order to edit a file list.
Object.Remove(Index)
Object | FileList <DropInformation> Object with this method |
Index | LongInteger Specifies the number of the file you want to delete. |
The following example deletes in the EventDragStart event the last entry of the file list and then adds a file to this file list.
VBScript | Python |
Sub Tree1_EventDragStart(ByRef This, ByRef DropInformation, ByRef DropEffect) Dim oMyFileList Set oMyFileList = DropInformation.FileList If oMyFileList.Count > 0 Then Call oMyFileList.Remove(oMyFileList.Count) Call oMyFileList.Add("C:\Test") End If End Sub