WordFile.SetCaseless
--------------------

Sets caseless state.

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

MBS( "WordFile.SetCaseless"; WordFile; Mode ) 

**MBS**( **"WordFile.SetCaseless";** /\* Sets caseless state. \*/  
**$WordFile**; /\* The reference number of the open word file. \*/   
**$Mode**) /\* The new mode.  
Pass 1 to compare caseless.  
Pass 0 to compare case insensitive. (Default)e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WordFile | The reference number of the open word file. | $wordFile |
| Mode | The new mode.   Pass 1 to compare caseless.   Pass 0 to compare case insensitive. (Default) | 1 |

### Result

Returns OK or error.

### Description

Sets caseless state.  
This enables you to make the text comparison case insensitive for comparing ASCII characters.  
### Examples

Set case insensitive:

 MBS ( "WordFile.SetCaseless"; $WordFile ; 1 )  
### See also

- [WordFile.GetCaseless](WordFileGetCaseless.md)
- [WordFile.SetMarkers](WordFileSetMarkers.md)

### Release notes

- **Version 7.4**
    - Added [WordFile.GetCaseless](http://www.mbsplugins.eu/WordFileGetCaseless.shtml) and [WordFile.SetCaseless](http://www.mbsplugins.eu/WordFileSetCaseless.shtml) for case (in)sensitivity.

### Blog Entries

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

### FileMaker Magazin

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

This function is free to use.

Created 18th August 2017 , last changed 18th August 2017

  
[WordFile.ReplaceTag](WordFileReplaceTag.md) - [WordFile.SetFieldText](WordFileSetFieldText.md)

[HTML Version](WordFileSetCaseless.shtml)