str="aaa,bbb,ccc,ddd,eee,fff,ggg,hhh,iii,jjj,"
dim s
s=""
arrStr = split(str,",")
for i=0 to ubound(arrStr)
if arrStr(i)<>"" then
if (i+1) mod 3=0 then
s = s & arrStr(i) & ";"
else
s = s & arrStr(i) & ","
end if
end if
next
str="aaa,bbb,ccc,ddd,eee,fff,ggg,hhh,iii,jjj,"
dim result:result=""
arrStr = split(str,",")
for i=0 to ubound(arrStr)
if arrStr(i)<>"" then
if (i+1) mod 3 = 0 then
result = result & arrStr(i) & ":"
else
result = result & arrStr(i) & ","
end if
end if
next
str="aaa,bbb,ccc,ddd,eee,fff,ggg,hhh,iii,jjj,"
dim result:result=""
arrStr = split(str,",")
for i=0 to ubound(arrStr)
if arrStr(i)<>"" then
if i=2 or i=5 or i=8 then
result = result & arrStr(i) & ":"
else
result = result & arrStr(i) & ","
end if
end if
next