Topics
All
Mac OS X
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Guides
Examples
New in version:
7.4
7.5
8.0
8.1
8.2
8.3
8.4
8.5
9.0
9.1
Statistic
List.SubList
Returns a part of the list.
Component | Version | macOS | Windows | Server | FileMaker Cloud | FileMaker iOS SDK |
List | 7.5 | Yes | Yes | Yes | Yes | Yes |
MBS( "List.SubList"; List; Index; Count { ; NoReturnEnding } ) More
Parameters
Parameter | Description | Example value |
---|---|---|
List | The list to process. | "Hello" ¶ "" ¶ "World" |
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 |
NoReturnEnding | Optional 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 |
Result
Returns OK or error.
Description
Returns a part of the list.Examples
Get first item:
MBS( "List.SubList"; "Hello"; 0; 1; 1)
Example result: "Hello"
Get all items:
MBS( "List.SubList"; "a¶b¶c¶d¶e"; 0; -1)
Example result:
"a
b
c
d
e
"
Get 2 items starting at offset 2:
MBS( "List.SubList"; "a¶b¶c¶d¶e"; 2; 2)
Example result:
"c
d
"
Blog Entries
Created 27th September 2017, last changed 27th September 2017
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins