QuickList.Push
--------------

Pushes a value to the end of the list.

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

MBS( "QuickList.Push"; ListRef; Text ) 

**MBS**( **"QuickList.Push";** /\* Pushes a value to the end of the list. \*/  
**$ListRef**; /\* The reference to the list returned from [QuickList.New](QuickListNew.md) function.e.g. $List \*/   
**$Text**) /\* The text to add.e.g. "Hello" \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Pushes a value to the end of the list.  
### Examples

Trying push:

 Set Variable \[$list ; Value:MBS ( "[QuickList.New](QuickListNew.md)" )\]  
Set Variable \[$r ; Value:MBS ( "QuickList.Push"; $list ; "Hello" )\]  
Set Variable \[$r ; Value:MBS ( "QuickList.Push"; $list ; "World" )\]  
Show Custom Dialog \["List"; MBS ( "[QuickList.GetList](QuickListGetList.md)"; $list )\]  
Set Variable \[$r ; Value:MBS ( "[QuickList.Release](QuickListRelease.md)"; $list )\]  
### See also

- [QuickList.Count](QuickListCount.md)
- [QuickList.Find](QuickListFind.md)
- [QuickList.GetList](QuickListGetList.md)
- [QuickList.List](QuickListList.md)
- [QuickList.New](QuickListNew.md)
- [QuickList.Pop](QuickListPop.md)
- [QuickList.PopFirst](QuickListPopFirst.md)
- [QuickList.Release](QuickListRelease.md)
- [QuickList.Sort](QuickListSort.md)
- [QuickList.Trim](QuickListTrim.md)

### Example Databases

- [DynaPDF/Find and Replace Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Find%20and%20Replace%20Text.shtml#9ScriptAnchor_)

### Blog Entries

- [Retract text from a PDF with DynaPDF](https://www.mbsplugins.de/archive/2025-11-01/Retract_text_from_a_PDF_with_D/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 2nd August 2015 , last changed 14th December 2023

  
[QuickList.PopFirst](QuickListPopFirst.md) - [QuickList.RegExMatch](QuickListRegExMatch.md)

[HTML Version](QuickListPush.shtml)