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:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Queries the list as text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
ListRef | The reference to the list returned from QuickList.New function. | $List | |
NoReturnEnding | Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists. | 1 | Optional |
Delimiter | The delimiter to use. Can be empty to have no delimiter. Common use is to pass "¶", ", " or "; ". |
", " | Optional |
Returns text or error.
Create a list and query it:
$listID = MBS( "QuickList.New"; "Hello¶World")
$list = MBS( "QuickList.GetList"; $listID)
$r = MBS("QuickList.Free"; $listID)
Try with delimiter:
Set Variable [$listID; Value:MBS( "QuickList.New"; "Hello¶World")]
Set Variable [$list1; Value:MBS( "QuickList.GetList"; $listID)]
Show Custom Dialog ["Result default"; $list1]
Set Variable [$list2; Value:MBS( "QuickList.GetList"; $listID; 0; "")]
Show Custom Dialog ["Result with empty delimiter"; $list2]
Set Variable [$list3; Value:MBS( "QuickList.GetList"; $listID; 0; " ")]
Show Custom Dialog ["Result with space delimiter"; $list3]
Set Variable [$r; Value:MBS("QuickList.Free"; $listID)]
Build a 10000 entry List:
Let ( [
q = MBS("QuickList.New");
// add 10000 entries
t = While ( [ i = 0 ] ; i < 10000 ; [ i = i + 1; r = MBS( "QuickList.AddValue"; q; "test " & i ) ] ; 0 );
// get as text
r = MBS("QuickList.GetList"; q);
// free memory
f = MBS("QuickList.Free"; q)
];
Length(r) & ¶ & r )
This function checks for a license.
Created 21st September 2014, last changed 20th June 2021