Sign-up....

数字格式判断问题?

在SQL数据库中设置一个字段类型为numeric(10.3)

那么表单提交时,如何判断他为 12345.123 格式

多谢

[66 byte] By [msdn] at [2007-8-14 21:43:15]
# 1 Re: 数字格式判断问题?

aa=request("接收的变量")

if cstr(left(right(aa,4),1))="." then

response.write "格式对咯"

else

response.write "重来"

end if

这个应该可以.

flyskywlh at 2004-9-29 16:11:56 >
# 2 Re: 数字格式判断问题?

按照楼上的试试看 呵呵

falconshh at 2004-9-29 16:12:51 >
# 3 Re: 数字格式判断问题?

如何有字符怎么办

cwa at 2004-9-29 16:33:28 >
# 4 Re: 数字格式判断问题?

用正则表达式吧

jinhong618 at 2004-9-29 17:24:33 >

Web

All Classified