WebView.Cut
-----------

Cuts current text selection.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [7.4](newinversion74.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "WebView.Cut"; WebViewerRef ) 

**MBS**( **"WebView.Cut";** /\* Cuts current text selection. \*/  
**$WebViewerRef**) /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |

### Result

Returns OK or error.

### Description

Cuts current text selection.  
This is like choosing the menu command to cut, but without using the menu.  
### Examples

Cut in web viewer:

 Set Variable \[ $r ; Value: MBS ("WebView.Cut"; "web") \]  
### See also

- [TextView.Cut](TextViewCut.md)
- [WebView.Copy](WebViewCopy.md)
- [WebView.FindByName](WebViewFindByName.md)
- [WebView.List](WebViewList.md)

### Release notes

- **Version 7.4**
    - Added [WebView.ClearSelection](http://www.mbsplugins.eu/WebViewClearSelection.shtml), [WebView.Copy](http://www.mbsplugins.eu/WebViewCopy.shtml), [WebView.Cut](http://www.mbsplugins.eu/WebViewCut.shtml), [WebView.Paste](http://www.mbsplugins.eu/WebViewPaste.shtml) and [WebView.SelectAll](http://www.mbsplugins.eu/WebViewSelectAll.shtml).

### Example Databases

- [WebViewer/WebView Copy and Paste](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebView%20Copy%20and%20Paste.shtml#1Button11.0000000282.000000045.0000000388.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 7.4pr2](https://www.mbsplugins.de/archive/2017-08-14/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st August 2017 , last changed 26th December 2019

  
[WebView.CreateWithControl](WebViewCreateWithControl.md) - [WebView.DisableJavascriptAlerts](WebViewDisableJavascriptAlerts.md)

[HTML Version](WebViewCut.shtml)