//AGK 2.0.19 #option_explicit Test() end function Test() local words as string[0] words=Split("Hello,World,Yall!",",") local i as integer do for i=0 to words.length print(words[i]) next if GetPointerPressed() then exit sync() loop endfunction function Split(text as string,delimiter as string) local ret as string[0] local index as integer, count as integer count=CountStringTokens2 ( text, delimiter ) ret.length = count-1 for index=1 to count ret[index-1]=GetStringToken2(text,delimiter,index) next endfunction ret