DragDrop.GetText
----------------

Queries text from the drop.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DragDrop](component_DragDrop.md) | [2.6](newinversion26.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "DragDrop.GetText"; droparea ) 

**MBS**( **"DragDrop.GetText";** /\* Queries text from the drop. \*/  
**$droparea**) /\* The reference ID for this drop area.e.g. $dropHandle \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| droparea | The reference ID for this drop area. | $dropHandle |

### Result

The text.

### Description

Queries text from the drop.  
Added Windows support for MBS Plugin 8.1.  
### Examples

Process text coming with Drag &amp; Drop:

 Set Variable \[ $text ; Value: MBS ("DragDrop.GetText"; $dropview ) \]   
If \[ Length($text ) &gt; 0 \]   
 New Record/Request  
 Set Field \[ DragTest::Text ; $text \]   
 Set Field \[ DragTest::Description ; "Got text" \]   
 Commit Records/Requests \[ With dialog: Off \]   
End If  
### See also

- [DragDrop.GetLeft](DragDropGetLeft.md)
- [DragDrop.GetPath](DragDropGetPath.md)
- [DragDrop.GetRTF](DragDropGetRTF.md)
- [DragDrop.GetSVG](DragDropGetSVG.md)
- [DragDrop.GetTag](DragDropGetTag.md)
- [DragDrop.GetTop](DragDropGetTop.md)
- [DragDrop.GetTypes](DragDropGetTypes.md)
- [DragDrop.GetURL](DragDropGetURL.md)
- [DragDrop.GetWidth](DragDropGetWidth.md)
- [DragDrop.SetTag](DragDropSetTag.md)

### Example Databases

- [Drag and Drop/DragTest Popover](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/DragTest%20Popover.shtml#3ScriptAnchor_)
- [Drag and Drop/DragTest](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/DragTest.shtml#3ScriptAnchor_)
- [Drag and Drop/for Mac/DragTest Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/for%20Mac/DragTest%20Text.shtml#3ScriptAnchor_)
- [Drag and Drop/for Mac/Image drag from one database to other/Image drop](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/for%20Mac/Image%20drag%20from%20one%20database%20to%20other/Image%20drop.shtml#3ScriptAnchor_)
- [Drag and Drop/for Mac/Text drag from one database to other/Text drag](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/for%20Mac/Text%20drag%20from%20one%20database%20to%20other/Text%20drag.shtml#3ScriptAnchor_)
- [Drag and Drop/for Mac/Text drag from one database to other/Text drop](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/for%20Mac/Text%20drag%20from%20one%20database%20to%20other/Text%20drop.shtml#3ScriptAnchor_)

### Blog Entries

- [Adding Drag and Drop receiver to a layout](https://www.mbsplugins.de/archive/2018-10-08/Adding_Drag_and_Drop_receiver_/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.6pr6](https://www.mbsplugins.de/archive/2012-03-12/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 5th February 2018

  
[DragDrop.GetTag](DragDropGetTag.md) - [DragDrop.GetTop](DragDropGetTop.md)

[HTML Version](DragDropGetText.shtml)