SPLIT†
Format†
SPLIT( src , delim [ , max ] )
Function†
- Splits a string and returns it as a general purpose array.
- RE_SPLIT can be used instead, but this is faster because it does not use regular expressions.
Arguments†
- src
- The string to be split. (If you put a variable here that could be a numeric type, it is recommended to make it a string type variable with TOSTR)
- delim
- The delimiter to split the string at.
- max
- The maximum number of divisions (optional). If 0 is specified, everything is divided. The default is 0.
Return value†
- If successful, the general purpose array after splitting
- If unsuccessful, an empty general purpose array
Related†
Version†
- YAYA: Available from the start
- Available in AYA5.8
Example†
_array = SPLIT("A//B//C//D//E", "//", 3)
_array holds the values ("A", "B", "C//D//E").