第1个回答 2008-08-28
Dim p() as string
Dim str as string
Dim i as integer
str = "abc,def,gsh,setywyth,ssfhjjwey,wewtwey,hsdhhs,sgsgs,r,r,twtey"
p = split(str,",")
Debug.Print "LBound of p()=";LBound(p)
Debug.print "UBound of p()=";ubound(p)
Debug.Print "Split String Count:";UBound(p)-LBound(p)
for i = LBound(p) to UBound(p)
debug.print "p(";i;")=";p(i)
next
第2个回答 2008-08-28
a1=mid(a,1,instr(a,",")-1)
a2=mid(a,instr(a,",")+1)
b同理
b1=mid(b,1,instr(b,",")-1)
b2=mid(b,instr(b,",")+1)