I have a project which receives a delimited string through SMS. I am tasked to split the string by colon (:
) using the Split
function. My SMS server receives the messages and my script processes it.
Sample code:
dim a
a = split(string,delimiter)
dim value
value = a(1)
Sample input (SMS message): abc:def ghi:jkl
Now when I split it, I was expecting value
to return only def
, but I get defghi
instead. Why?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…