QuickList.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( "QuickList.Trim"; ListRef ) 

**MBS**( **"QuickList.Trim"** /\* Trims all texts in the list. \*/  
**$ListRef**) /\* The reference to the list returned from [QuickList.New](QuickListNew.md) function. e.g. $List \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ListRef | The reference to the list returned from [QuickList.New](QuickListNew.md) function. | $List |

### Result

Returns OK or error.

### Description

Trims all texts in the list.  
### Examples

Trim spaces of all entries:

 # values from a CSV file with extra spaces   
Set Variable \[ $list ; Value: MBS ( "[QuickList.New](QuickListNew.md)"; " Apple ¶ Banana¶Cherry " ) \]  
Set Variable \[ $r ; Value: MBS ( "QuickList.Trim"; $list ) \]  
Set Variable \[ $text ; Value: MBS ( "[QuickList.GetList](QuickListGetList.md)"; $list ) \]  
Set Variable \[ $r ; Value: MBS ( "[QuickList.Release](QuickListRelease.md)"; $list ) \]  
### See also

- [List.Trim](ListTrim.md)
- [QuickList.Find](QuickListFind.md)
- [QuickList.GetList](QuickListGetList.md)
- [QuickList.List](QuickListList.md)
- [QuickList.New](QuickListNew.md)
- [QuickList.Or](QuickListOr.md)
- [QuickList.Push](QuickListPush.md)
- [QuickList.Release](QuickListRelease.md)
- [QuickList.Sort](QuickListSort.md)

### Blog Entries

- [Comparing Base Elements Plugin to MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2017-10-24/Comparing_Base_Elements_Plugin/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 21st October 2017 , last changed 6th November 2026

  
[QuickList.SubList](QuickListSubList.md) - [QuickList.ValueIndex](QuickListValueIndex.md)

[HTML Version](QuickListTrim.shtml)