Page 1 of 1

simple Split function that splits to array or list

Posted: Fri Jan 08, 2021 11:49 am
by TheAutomator
Something vbscript like:

Split(Str, By)

parameters:

( "string", "delimiter(s)" )

in and output:

IN = Split("a b c", " ")
OUT = ARRAY ["a", "b", "c"]

why? because now the string field one has to re-split the same string every time you call it.. (to slow).
Now i always have to use rexexp or custom function..

regards

Re: simple Split function that splits to array or list

Posted: Tue Jan 19, 2021 3:04 am
by AZJIO

Re: simple Split function that splits to array or list

Posted: Fri Oct 08, 2021 9:21 am
by Rinzwind
+1
This. It should be in a basic and fast command. I think almost every Basic dialect has it.
Split and Join