WordFile.SetMarkers
-------------------

Sets the markers to look for before/after a tag.

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

MBS( "WordFile.SetMarkers"; WordFile; OpenMarker; CloseMarker ) 

**MBS**( **"WordFile.SetMarkers";** /\* Sets the markers to look for before/after a tag. \*/  
**$WordFile**; /\* The reference number of the open word file. \*/   
**$OpenMarker**; /\* The new marker to search before tag.e.g. "«" \*/   
**$CloseMarker**) /\* The new end marker.e.g. "»" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WordFile | The reference number of the open word file. | $wordFile |
| OpenMarker | The new marker to search before tag. | "«" |
| CloseMarker | The new end marker. | "»" |

### Result

Returns 1, 0 or error.

### Description

Sets the markers to look for before/after a tag.  
Default are « and ».  
Should be different and not empty.  
Returns 1 on success or 0 on failure.  
  
Please don't use &lt; or &gt; for markers as those conflict with XML structure.  
### See also

- [WordFile.HasTag](WordFileHasTag.md)
- [WordFile.SetCaseless](WordFileSetCaseless.md)
- [WordFile.Tags](WordFileTags.md)

### Release notes

- **Version 9.2**
    - Fixed bug with [WordFile.SetMarkers](http://www.mbsplugins.eu/WordFileSetMarkers.shtml).

### Blog Entries

- [MBS FileMaker Plugin 12.2](https://www.mbsplugins.de/archive/2022-06-09/MBS_FileMaker_Plugin_122/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.2pr1](https://www.mbsplugins.de/archive/2019-04-02/MBS_FileMaker_Plugin_version_9/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 23th June 2016 , last changed 31st December 2016

  
[WordFile.SetFieldText](WordFileSetFieldText.md) - [WordFile.SetMediaFile](WordFileSetMediaFile.md)

[HTML Version](WordFileSetMarkers.shtml)