QuickList.InsertValue
---------------------

Inserts a value to a list.

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

MBS( "QuickList.InsertValue"; ListRef; Index; Text ) 

**MBS**( **"QuickList.InsertValue";** /\* Inserts a value to a list. \*/  
**$ListRef**; /\* The reference to the list returned from [QuickList.New](QuickListNew.md) function.e.g. $List \*/   
**$Index**; /\* the index where to insert.e.g. 0 \*/   
**$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 |
| Index | the index where to insert. | 0 |
| Text | The text to add. | "Hello" |

### Result

Returns OK or error.

### Description

Inserts a value to a list.  
Please note that [QuickList.AddValue](QuickListAddValue.md) is more efficient than inserting.  
### See also

- [List.AddValue](ListAddValue.md)
- [QuickList.AddValue](QuickListAddValue.md)
- [QuickList.Deserialize](QuickListDeserialize.md)
- [QuickList.GetValue](QuickListGetValue.md)
- [QuickList.HasValue](QuickListHasValue.md)
- [QuickList.New](QuickListNew.md)
- [QuickList.RemoveValue](QuickListRemoveValue.md)
- [QuickList.SetValue](QuickListSetValue.md)

This function checks for a license.

Created 2nd August 2015 , last changed 2nd August 2015

  
[QuickList.IndexOfFirstValueMatching](QuickListIndexOfFirstValueMatching.md) - [QuickList.JSONArray](QuickListJSONArray.md)

[HTML Version](QuickListInsertValue.shtml)