Removing a Value from a List

The StringListRemoveItem function is used to remove a specified item from a provided character-separated list of string values, and return the updated list. The function returns the original list if the specified item does not appear in the list.

The function's syntax is as follows:

StringListRemoveItem( ListName, ListSeparator, Item);

ListName is the original list of string values. This can be a variable keyword.

There is no need to put the ListName parameter in quotes.

ListSeparator is the single character that separates values in ListName, and will be used to separate values in the new list. Its default value is a comma.

The ListSeparator cannot be left as an empty string.

Item is the string to remove from ListName. This must be the full string, exactly as it appears in the list.