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  

QuickList.SubList

Returns a part of the list.

Component Version macOS Windows Linux Server iOS SDK
List 7.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "QuickList.SubList"; ListRef; Index; Count { ; ReturnNewList; NoReturnEnding } )   More

Parameters

Parameter Description Example Flags
ListRef The reference to the list returned from QuickList.New function. $List
Index The zero based index where to start.
Or in other words: How many entries to skip.
3
Count How many entries to copy.
If negative, we pick the other items left.
5
ReturnNewList Pass 1 to return result as new QuickList. This new list must be freed later using QuickList.Free function. Pass 0 (Default) to return a text list. 0 Optional
NoReturnEnding If you passed 0 for ReturnNewList, decides about new list:
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

Result

Returns OK or error.

Description

Returns a part of the list.
Can return new QuickList or normal list.

See also

Release notes

Blog Entries

This function checks for a license.

Created 27th September 2017, last changed 30th September 2017


QuickList.SortWithEvaluate - QuickList.Trim

💬 Ask a question or report a problem