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.
Newlook Smartclient only.
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.
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)
AllowDrop property | OnDrop property
© 2004-2021 looksoftware. All rights reserved.