Aha...Instead of SPLIT(), try this:
SalahSplit.K2K
code:
break on
; your input
$line="aaa bbb cc dddd"
$array=split($line)
; create Comma Separated List
$line2=""
for each $thing in $array
if $thing<>"" $line2=$line2+$thing+"," endif
next
; re-split new line without the last blank entry
$array=split(substr($line2, 1, len($line2)-1), ",")
; display results
"There are " ubound($array)+1 " items:" ?
for $i=0 to ubound($array)
$i ": '" $array[$i] "'" ?
next
cj