Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

QuickList.Serialize

Serialized a list as a text.

Component: List
Version: 5.2
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "QuickList.Serialize"; ListRef )

Parameters

Parameter Description Example value
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.Free"; $list)]
Set Variable [$r; Value:MBS("QuickList.Free"; $secondList)]

See also


QuickList.Reverse   -   QuickList.SetList

Feedback: Report problem or ask question.




Links
MBS Realbasic Plugins - Bilder aus Nickenich