DragDrop.GetWidth
-----------------

Queries current width of the drop area.

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

MBS( "DragDrop.GetWidth"; droparea ) 

**MBS**( **"DragDrop.GetWidth";** /\* Queries current width of the drop area. \*/  
**$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

Returns width or error.

### Description

Queries current width of the drop area.  
### Examples

Query current size:

 Set Variable \[ $width ; Value: MBS ( "DragDrop.GetWidth"; $$dropview ) \]   
Set Variable \[ $height ; Value: MBS ( "[DragDrop.GetHeight](DragDropGetHeight.md)"; $$dropview ) \]   
Show Custom Dialog \[ "Current size" ; $width &amp; " x " &amp; $height \]  
### See also

- [DragDrop.GetHeight](DragDropGetHeight.md)
- [DragDrop.GetLeft](DragDropGetLeft.md)
- [DragDrop.GetPath](DragDropGetPath.md)
- [DragDrop.GetPicture](DragDropGetPicture.md)
- [DragDrop.GetText](DragDropGetText.md)
- [DragDrop.GetTypes](DragDropGetTypes.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th December 2020

  
[DragDrop.GetVisible](DragDropGetVisible.md) - [DragDrop.GetWindowRef](DragDropGetWindowRef.md)

[HTML Version](DragDropGetWidth.shtml)