先要 replacedim a as string a="i am student" a=replace(a," ","") 之后得到长度,分给textbox for i = 1 to len(a) txt(i).text=mid(a,i,1) next 我这里用了一个textbox的数组,你也可以试试
1、Text(index).Text=Mid("010100",Index+1,1) 2、Replace("i am a studente"," ","")就可以得到iamastudente
还有一个问题我输入的是 i am a studente我要求输出的是 iamastudente我要怎么做??const st="i am a studente"'输入字串 dim a() a()=split(st," ") for i= 0 to ubound(a) st2=st2& a(i)'输出字串 next
text(0)、text(1)...
text(index+1)对应字符串的第几位
有一个函数记不清了,可以取相应位,帮你喊人啊!
各路弟兄!有没有人知道这个函数是什么?
a="i am student"
a=replace(a," ","")
之后得到长度,分给textbox
for i = 1 to len(a)
txt(i).text=mid(a,i,1)
next
我这里用了一个textbox的数组,你也可以试试
2、Replace("i am a studente"," ","")就可以得到iamastudente
dim a()
a()=split(st," ")
for i= 0 to ubound(a)
st2=st2& a(i)'输出字串
next
mid
right
……
函数的套用