RichText.TextLength
-------------------

Returns the length of the text in characters.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RichText](component_RichText.md) | [3.0](newinversion30.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "RichText.TextLength" ) ### Parameters

none

### Result

Returns the length of the text in characters.

### Description

Returns the length of the text in characters.  
### Examples

Read plain text from container field:

 $r = MBS ( "[RichText.ReadContainer](RichTextReadContainer.md)"; Test::ContainerField )  
$length = MBS ( "RichText.TextLength" )  
### See also

- [RichText.ReadContainer](RichTextReadContainer.md)
- [RichText.Text](RichTextText.md)

### Example Databases

- [Mac only/RichText/RichText](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/RichText.shtml#4ScriptAnchor_)

This function is free to use.

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

  
[RichText.Text](RichTextText.md) - [RichText.WriteContainer](RichTextWriteContainer.md)

[HTML Version](RichTextTextLength.shtml)