Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Text.Serialize

Serializes styled text as text.

Component Version macOS Windows Linux Server iOS SDK
Text 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.Serialize"; Text )   More

Parameters

Parameter Description Example
Text The styled text to serialize. "Hello World"

Result

Returns text or error.

Description

Serializes styled text as text.
The styled text content is stored in a base64 encoded string which the plugin function Text.Deserialize can read.
Using this function allows to store a styled text in a text field or transmit it with Socket functions, SerialPort functions or by writing it to a file.

See also Text.Styles and Text.FromStyles to serialize with JSON.

Examples

Store styled text in a plain text field:

# serialize the styled text, so it keeps fonts and colors
Set Variable [ $data ; Value: MBS( "Text.Serialize"; Notes::StyledText ) ]
# store the text, e.g. in a text field, a file or send it via socket
Set Field [ Notes::SerializedText ; $data ]
# later use Text.Deserialize to get the styled text back

See also

Example Databases

Blog Entries

This function checks for a license.

Created 28th October 2015, last changed 6th November 2026


Text.RightTrim - Text.SoundEx


MarkDown version: TextSerialize.md