List.Trim
---------

Trims all texts in the list.

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

MBS( "List.Trim"; List { ; NoReturnEnding } ) 

**MBS**( **"List.Trim";** /\* Trims all texts in the list. \*/  
**$List**; /\* The list to trim.e.g. "Hello" ¶ "World" \*/   
**$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 trim. | "Hello" ¶ "World" |  |
| 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 OK or error.

### Description

Trims all texts in the list.  
### Examples

Trim list values:

 MBS ( "List.Trim"; " Hello ¶ With tab ¶" )  
This function checks for a license.

Created 21st October 2017 , last changed 21st September 2022

  
[List.SubList](ListSubList.md) - [List.ValueIndex](ListValueIndex.md)

[HTML Version](ListTrim.shtml)