RichText.Release
----------------

Frees memory for current text file.

| 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.Release" ) ### Parameters

none

### Result

Returns OK on success.

### Description

Frees memory for current text file.  
When loading a new file, the old file is automatically released.  
### Examples

Read formatted text from container field and release memory:

 $r = MBS ( "[RichText.ReadContainer](RichTextReadContainer.md)"; Test::ContainerField )  
$text = MBS ( "[RichText.FormattedText](RichTextFormattedText.md)" )  
$r = MBS ( "RichText.Release" )  
### See also

- [RichText.Clear](RichTextClear.md)
- [RichText.FormattedText](RichTextFormattedText.md)
- [RichText.ReadContainer](RichTextReadContainer.md)
- [RichText.ReadHTML](RichTextReadHTML.md)
- [RichText.ReadRTF](RichTextReadRTF.md)
- [RichText.RTF](RichTextRTF.md)
- [RichText.SetFormattedText](RichTextSetFormattedText.md)
- [RichText.WriteContainer](RichTextWriteContainer.md)
- [RichText.WriteFile](RichTextWriteFile.md)
- [RichText.WritePDF](RichTextWritePDF.md)

### Example Databases

- [Mac only/RichText/Replace Text in Word File](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/Replace%20Text%20in%20Word%20File.shtml#1ScriptAnchor_)
- [Mac only/RichText/RTF to formatted text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/RTF%20to%20formatted%20text.shtml#1ScriptAnchor_)
- [Mac only/RichText/Write Document](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/Write%20Document.shtml#1ScriptAnchor_)
- [Text functions/HTML to formatted text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/HTML%20to%20formatted%20text.shtml#2ScriptAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 2nd February 2023

  
[RichText.ReadWebviewer](RichTextReadWebviewer.md) - [RichText.ReplaceText](RichTextReplaceText.md)

[HTML Version](RichTextRelease.shtml)