Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

List.Serialize

Serialized a list as a text.

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

Parameters

Parameter Description Example
List The list to process. "Hello" ¶ "" ¶ "World"

Result

Returns text or error.

Description

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

Examples

Save and restore a list:

Set Variable [$list; Value:"Hello¶World¶1234¶Just a test!"]
Set Variable [$text; Value:MBS("List.Serialize"; $list)]
Show Custom Dialog ["List"; "Encoded: " & $text & ¶ & ¶ & "Decoded: " & MBS("List.Deserialize"; $text)]

See also

Blog Entries

Created 6th July 2015, last changed 6th July 2015


List.Reverse - List.SetValue

Feedback: Report problem or ask question.