dragSource

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the dragSource
dragSource()
Summary

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

Introduced2.0
OSmac, windows, linux
Platformsdesktop, server
Example
the dragSource
if the short name of the dragSource is empty then beep
Values
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.

RelatedProperty: ID
Message: dragEnd, dragDrop
Function: target
Glossary: property, return, object type, drag and drop, object
Control Structure: function
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.

Tagsui