WordFile.Contains
-----------------

Checks if some text exists in the document.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WordFile](component_WordFile.md) | [11.4](newinversion114.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "WordFile.Contains"; WordFile; FindText ) 

**MBS**( **"WordFile.Contains"** /\* Checks if some text exists in the document. \*/  
**$WordFile**; /\* The reference number of the open word file. \*/   
**$FindText**) /\* The text to look for. e.g. "$City" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WordFile | The reference number of the open word file. | $wordFile |
| FindText | The text to look for. | "$City" |

### Result

Returns 1 or 0 or error.

### Description

Checks if some text exists in the document.  
This is like [WordFile.HasTag](WordFileHasTag.md) function, but doesn't require markers around the text in the document.  
### See also

- [WordFile.HasTag](WordFileHasTag.md)

### Release notes

- **Version 11.4**
    - Added [WordFile.Contains](https://www.mbsplugins.eu/WordFileContains.shtml) and [WordFile.Substitute](https://www.mbsplugins.eu/WordFileSubstitute.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 11.4](https://www.mbsplugins.de/archive/2021-09-15/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.4](https://www.mbsplugins.de/archive/2021-09-07/Neues_MBS_FileMaker_Plugin_114/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.4 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-09-07/MBS_FileMaker_Plugin_114_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.4pr2](https://www.mbsplugins.de/archive/2021-08-11/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2021, Seite 20](https://filemaker-magazin.de/neuigkeit/4165-Appetithappen-FMM_202106)

This function checks for a license.

Created 8th August 2021 , last changed 8th August 2021

  
[WordFile.AppendTableRow](WordFileAppendTableRow.md) - [WordFile.DuplicateTableRow](WordFileDuplicateTableRow.md)

[HTML Version](WordFileContains.shtml)