软件教程

IsNumeric 函数 应用说明

来源: 本站    类别: 软件教程    日期: 2010/11/2

 

IsNumeric 函数
返回 Boolean 值指明表达式的值是否为数字。
语法
IsNumeric(expression)
expression 参数可以是任意表达式。
说明
如果整个 expression 被识别为数字,IsNumeric 函数返回 True;否则函数返回 False。
如果 expression 是日期表达式,IsNumeric 函数返回 False。

<%
a=1234
response.write(isnulmeric(a))
b="www.asp.org.cn"
response.write(isnulmeric(b))

%>
输出结果为true,false

这个函数使用比较多,要记住。



相关文章


Copyright © 2004 - 2025 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com