listToArray
Syntax
string[] listToArray(stringList)
Parameters
- stringList (string)
Returns
Returns the stringList as string array.
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
- listFromArray function
Examples
floatArray(listToArray("1;2;3;")) # result = [1,2,3] boolArray(listToArray("true;false;true;")) # result = [true,false,true] listToArray("rule;your;city;") # result = ["rule","your","city"]
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.