Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
List.Remove
Removes the value with the given index in the list.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 7.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "List.Remove"; List; Index ) More
Parameters
Parameter | Description | Example |
---|---|---|
List | The list to process. | "Hello" ¶ "" ¶ "World" |
Index | The index of the item to remove. Range from 0 to QuickList.Count-1. | 0 |
Result
Returns list or error.
Description
Removes the value with the given index in the list.Returns a new list where the value is missing.
For big lists, using QuickList functions is much faster. The list is only parsed once and stored in memory.
Examples
Remove an entry:
MBS( "List.Remove"; "Hello¶World¶Test"; 1 )
Example result:
Hello
Test
See also
- JSON.GetArrayItemsAsQuickList
- List.FindDuplicateItems
- List.RemoveDuplicateItems
- List.RemoveEmptyItems
- List.RemovePostfix
- List.RemovePrefix
- List.RemoveValue
- QuickList.Count
- QuickList.JoinJSON
- SyntaxColoring.AddContextMenuCommand
Release notes
- Version 14.0
- Added CaseSensitive flag for List.FindDuplicateItems, List.HasDuplicateItems, List.RemoveDuplicateItems, QuickList.FindDuplicateItems, QuickList.HasDuplicateItems, QuickList.RemoveDuplicateItems.
- Version 10.4
- Added RemoveAll and ReturnNewList parameters to QuickList.RemoveDuplicateItems function.
- Version 9.0
- Changed List.RemoveValue and QuickList.RemoveValue to not report error if value is not found.
- Version 7.1
This function checks for a license.
Created 11st March 2017, last changed 18th December 2020