风雷速递申报类别,情趣内衣9quw,尹先炳
检测整数和长整数的asp函数
<%
检测字符串是否是整数
function is_int(a_str)
if not isnumeric(a_str) or len(a_str) > 5 then
is_int = false
exit function
elseif len(a_str) < 5 then
is_int = true
exit function
end if
if cint(left(a_str , 4)) > 3276 then
is_int = false
exit function
elseif cint(left(a_str , 4)) = 3276 and cint(right(a_str , 1)) > 7 then
is_int = false
exit function
else
is_int = true
exit function
end if
end function
检测是否是长整数
function is_lng(a_str)
if not isnumeric(a_str) or len(a_str) > 10 then
is_lng = false
exit function
elseif len(a_str) < 10 then
is_lng = true
exit function
end if
if clng(left(a_str , 9)) > 214748367 then
is_lng = false
exit function
elseif clng(left(a_str , 9)) = 214748367 and clng(right(a_str , 1)) > 7 then
is_lng = false
exit function
else
is_lng = true
exit function
end if
end function
%>
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论