- dim a,i,b
- do until a="n"
- a=inputbox("请输入板卡号和vlan号中间请用,隔开", "电话号码",a)
- if a="n" Then
- msgbox "已退出"
- else
- b =Split(a,"," )
- for i=0 to lbound(b)
- crt.screen.send ("multi-pvc adsl 0/" )&b(0) &(" 0xffffffff region lan 0/13 vlanId ")&b(1) &(" off off 1 1 ")&Chr(13)
- a=b(0)+1&","&b(1)
- next
- End If
- loop
- msgbox "1111111111111111"
复制代码 在点取消或输入字母n后结束循环但现在点取消总是会出现下标越界“number:0” 就完全退出了 |