DroppedFiles Collection

The DroppedFiles collection contains the count of files which have been dropped onto the control and the collection of path/file names of the dropped files.

Client support

   Newlook Smartclient only.

Notes

 The path and filename of a Dropped file can be returned in a macro or script via the following syntax:

App.ActiveForm.control.DroppedFiles(Index)

where x is the item number of the file you wish to return.

The number of dropped items can be returned in a macro or script using the following syntax:

App.ActiveForm.control.DroppedFiles.count

Note that it is only possible to drag and drop files onto a control if the AllowDrop property has been enabled for that control.

Referencing individual members of the collection

You can reference an individual item within any Newlook collection by using its Index. All indexes in Newlook are zero-based therefore if you wanted to return the third item in the collection you would use the following syntax:

object.collection(2)

See Also

AllowDrop property | OnDrop property

Applies To

DataGrid control

Form object

ListBox control

ListView control

Navigation Group object

Panel control

PictureBox control

SmartNav control

TreeView control

TabPage object


© 2004-2021 looksoftware. All rights reserved.