Skip to main content

dragSource

Type

function

Summary

Returns the long ID of the object that dragged data was dragged from.

Syntax

the dragSource
dragSource()

Description

Use the dragSource function to find out which object, and which object type, is being dragged from.

The dragSource function only returns a value while a drag and drop is in progress. Otherwise, the dragSource function returns empty.

Examples

the dragSource
if the short name of the dragSource is empty then beep

Value

NameTypeDescription

return

The dragSource function returns the long ID property of the object. If the drag came from another application, the dragSource returns an application identifier, or empty if the source cannot be determined.

control structure: function

function: target

glossary: property, return, object type, drag and drop, object

message: dragEnd, dragDrop

property: ID

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?