大家快来看啊,
public function check(phone)
phonenumber="0123456789"
for i=1 to len(phone)
for j=0 to len(phonenumber)
if mid(phone,i,1)=mid(phonenumber,j,1)
check=true
else
check=false
end if
next
next
end function
我这个程序是想检测用户输入的电话号码,如果不是数字的话,就会认为是错误,请问为什么调试时会出错,要帮忙,谢谢