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

QuickList.Serialize

Serialized a list as a text.

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

Parameters

Parameter Description Example
ListRef The reference to the list returned from QuickList.New function. $List

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

Create and save a list to restore it:

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

See also

Blog Entries

This function checks for a license.

Created 6th July 2015, last changed 14th December 2023


QuickList.Reverse - QuickList.SetList