Split Procedure
Splits a delimited string into a list of strings.
Often the input string is comma-separated, but any delimiter can be used.
Declaration
function Split(
input as String, separator as String
) as List of String
Parameters
- input as String — A string containing a series of items, like "a,b,c".
- separator as String — The character(s) that separate the items, like ",".
Return value
List of String — A list of strings, like
["a", "b", "c"].
Possible error codes
Example
Code
dim x = Split("a,b,c", ",")
print x(0)
print x(1)
print x(2)
Output