listRemoveAll
Syntax
string listRemoveAll(stringList, searchString)
Parameters
- stringList (string)
- searchString (string)
Returns
Removed all occurrences of searchString from stringList.
Description
This function removes all occurrences of items from the stringList. Optional: Leading or trailing * in searchString are used as wildcard.
Note: String lists are a series of strings stored inside one string. The elements are separated by a semicolon (";"). Each item must be followed by a semicolon, also the last one! The data type is "string", thus it is not an array as used in other scripting languages.
Related
- listAdd function
- listClean function
- listCount function
- listFirst function
- listIndex function
- listItem function
- listLast function
- listRandom function
- listRange function
- listRemove function
- listRemoveAll function
- listSize function
- listTerminate function
Examples
listRemoveAll("rule;your;designs;and;your;cities;","your") # result = "rule;designs;and;cities;" listRemoveAll("rule;your;designs;and;your;cities;","*u*") # result = "designs;and;cities;"
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.