DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

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)
ObjectFileList <DropInformation>
Object with this method
IndexLongInteger
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.

VBScriptPython

 

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
In This Section
Was this information helpful?