version 6.0
Drop position Number
| Parameter | Type | Description | ||||
| This command does not require any parameters | ||||||
| Function result | Number | Destination element number or item position, or | ||||
| -1 if drop occurred beyond the last array element | ||||||
| or list item | ||||||
Description
The Drop position command returns the array element number or list item position onto which an object has been dragged and dropped.
Typically, you will use Drop position while handling a drag and drop event that occurred over an array or a hierarchical list.
If the destination object is an array, the command returns an element number. If the destination object is a hierarchical list, the command returns an item position. In both cases, the command may return -1 if the source object has been dropped beyond the last element or the last item.
If you call Drop position while handling an event that is not a drag and drop event and that occurred over an array or a hierarchical list, the command returns -1.
Important: A form object accepts dropped data if its Droppable property has been selected. Also, its object method must be activated for On Drag Over and/or On Drop, in order to process these events.
Example
See examples for the command DRAG AND DROP PROPERTIES.
See Also
Drag and drop, DRAG AND DROP PROPERTIES.