gzbhappy 发表于 2008-7-18 12:23

大家帮指点一下,这句是什么意思?

大家帮指点一下,这句是什么意思?
谢谢
for i=1 to n
   if instr("0123456789",cstr(mid(cstr(quhao),i,1)))<1 then      
   end if
next

dhdhzzw 发表于 2008-7-18 13:10

Instr(): 返回字符或字符串在另一个字符串中第一次出现的位置.
CStr(): 转化一个表达式为字符串.
Mid(strin,start[,length])

返回指定长度的字符串string的子串。
cstr(quhao)将quhao装化成字符串
mid(cstr(quhao),i,1)
从第i个字符开始截取一个字符
cstr(mid(cstr(quhao),i,1))
将截取得字符转化成字符串,,

instr("0123456789",cstr(mid(cstr(quhao),i,1)))
查找  cstr(mid(cstr(quhao),i,1))字符串在0123456789中出现的位置
如果位置小于1  就结束

页: [1]

编程论坛