dragDestination

returns the long ID of the object that dragged data was dropped on.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 2.0 Security:

# Syntax

the dragDestination

# Examples

the dragDestination

put the rect of the dragDestination into whereWeDragged

# Description

Use the dragDestination function to determine which object received a drag and drop.

The dragDestination function only returns a value while a dragDrop handler is being execute: that is, you can use it in a dragDrop handler, or in a handler that's called by a dragDrop handler. If called from another handler, the dragDestination function returns empty.

# Tags

ui,

# See

- **property:** ID - **message:** dragEnd, dragDrop - **function:** dropChunk, target - **glossary:** handler, property, return, execute, drag and drop, object - **control structure:** function