List.DeCombine
--------------

Picks elements from each line in a list.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [List](component_List.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "List.DeCombine"; List; ColumnDelimiter; StartColumn; EndColumn { ; NoReturnEnding } ) 

**MBS**( **"List.DeCombine"** /\* Picks elements from each line in a list. \*/  
**$List**; /\* The list to process. e.g. "Hello" ¶ "" ¶ "World" \*/   
**$ColumnDelimiter**; /\* The delimiter between colums.  
This is also used in result. e.g. "|" \*/   
**$StartColumn**; /\* Index of column to start.  
First is 0. e.g. 0 \*/   
**$EndColumn**; /\* Index of column to end.  
First is 0. If you only want one column, please pass same value for start and end column. e.g. 0 \*/   
**$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. e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| List | The list to process. | "Hello" ¶ "" ¶ "World" |  |
| ColumnDelimiter | The delimiter between colums.   This is also used in result. | "\|" |  |
| StartColumn | Index of column to start.   First is 0. | 0 |  |
| EndColumn | Index of column to end.   First is 0. If you only want one column, please pass same value for start and end column. | 0 |  |
| 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 |

### Result

Returns list or error.

### Description

Picks elements from each line in a list.  
This function combines values from a list by picking only given columns.  
### Examples

Queries second word in each entry:

 MBS ( "List.DeCombine"; "Hello|The|World¶Thats|What|WeMake¶YUPP|Thats|Fun"; "|"; 1; 1 ;1 )  
<small>  
Example result: "The¶What¶Thats"</small>Query fist word in each entry:

 MBS ( "List.DeCombine"; "Hello|The|World¶Thats|What|WeMake¶YUPP|Thats|Fun"; "|"; 0; 0 ;1 )  
<small>  
Example result: "Hello¶Thats¶YUPP"</small>Query first adn second word in each entry:

 MBS ( "List.DeCombine"; "Hello|The|World¶Thats|What|WeMake¶YUPP|Thats|Fun"; "|"; 0; 1 ;1 )  
<small>  
Example result: "Hello|The¶Thats|What¶YUPP|Thats"</small>### See also

- [QuickList.DeCombine](QuickListDeCombine.md)
- [QuickList.SortWith](QuickListSortWith.md)

### Release notes

- **Version 12.3**
    - Fixed [List.DeCombine](https://www.mbsplugins.eu/ListDeCombine.shtml) and [QuickList.DeCombine](https://www.mbsplugins.eu/QuickListDeCombine.shtml) to handle the ReturnNewline parameter correctly.
- **Version 7.5**
    - Added [QuickList.DeCombine](http://www.mbsplugins.eu/QuickListDeCombine.shtml) function.
    - Fixed problem in [List.DeCombine](http://www.mbsplugins.eu/ListDeCombine.shtml) not returning list with first empty element missing.

### Blog Entries

- [MBS FileMaker Plugin, version 12.3pr1](https://www.mbsplugins.de/archive/2022-06-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.5pr2](https://www.mbsplugins.de/archive/2017-10-16/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.3pr5](https://www.mbsplugins.de/archive/2016-07-04/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 25th June 2016 , last changed 11st December 2016

  
[List.CrossProduct](ListCrossProduct.md) - [List.DeleteColumn](ListDeleteColumn.md)

[HTML Version](ListDeCombine.shtml)