### Remove List Item or items

This sub removes an item from a list.
'Remove an item from a list and return the list.
'Example:
'RemoveListItem(mylist, "myitem")
`Sub RemoveListItem(l As List, item As String) As List
Dim result As List = l
Dim x As Int
x = l.IndexOf(item)
If x > -1 Then result.RemoveAt(x)
Return result
End Sub`
'Removes one or more items from a list
'Example:
'Dim fll as List
'fll.AddAll(...)
'fll = Utils.RemoveListItems(fll, Array As String("bin", "src", "rotrackxv.jar", "rotrackxv.set"))
`Public Sub RemoveListItems(l As List, itms As List) As List
Dim idx As Int
For Each s As String In itms
idx = l.IndexOf(s)
If idx > -1 Then l.RemoveAt(idx)
Next
Return l
End Sub`

Changed: , Category: Lists, File: T6C215M1575.htm, ID: 1575