QuickList.AddPrefix
-------------------

Adds a prefix text to each entry in the list.

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

MBS( "QuickList.AddPrefix"; ListRef { ; Prefix; ReturnNewList } ) 

**MBS**( **"QuickList.AddPrefix";** /\* Adds a prefix text to each entry in the list. \*/  
**$ListRef**; /\* The reference to the list returned from [QuickList.New](QuickListNew.md) function.e.g. $List \*/   
**$Prefix**; /\* Optional; The text to prepend.e.g. "!" \*/   
**$ReturnNewList**) /\* Optional; Pass 1 to return result as new QuickList.   
This new list must be freed later using [QuickList.Release](QuickListRelease.md) function. Pass 0 (Default) to modify the list in the List1 parameter.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ListRef | The reference to the list returned from [QuickList.New](QuickListNew.md) function. | $List |  |
| Prefix | The text to prepend. | "!" | Optional |
| ReturnNewList | Pass 1 to return result as new QuickList.    This new list must be freed later using [QuickList.Release](QuickListRelease.md) function. Pass 0 (Default) to modify the list in the List1 parameter. | 0 | Optional |

### Result

Returns list or error.

### Description

Adds a prefix text to each entry in the list.  
### Examples

Try in one Let statement:

 Let(\[  
list = MBS ("[QuickList.New](QuickListNew.md)"; "Hello¶World");  
e = MBS ("QuickList.AddPrefix"; list; "&gt;");  
e = MBS ("[QuickList.AddPostfix](QuickListAddPostfix.md)"; list; "&lt;");  
r = MBS ("[QuickList.GetList](QuickListGetList.md)"; list);  
d = MBS ("[QuickList.Release](QuickListRelease.md)"; list)  
\]; r)  
### See also

- [List.AddPostfix](ListAddPostfix.md)
- [List.AddPrefix](ListAddPrefix.md)
- [QuickList.AddPostfix](QuickListAddPostfix.md)
- [QuickList.GetList](QuickListGetList.md)
- [QuickList.New](QuickListNew.md)
- [QuickList.Release](QuickListRelease.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.1pr5](https://www.mbsplugins.de/archive/2016-03-06/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 4th March 2016 , last changed 14th December 2023

  
[QuickList.AddPostfix](QuickListAddPostfix.md) - [QuickList.AddQuickList](QuickListAddQuickList.md)

[HTML Version](QuickListAddPrefix.shtml)