ASP常用函数:IsBlank()
作者:jumbot 来源:ZhouGuoQing's Blog 时间:2008-09-28 13:21:00
我们在编写asp程序时经常会使用到这个功能,一般我们这样判断如:if a="" then ,而这个函数考虑的就比较全面了!
IsBlank()函数功能:判断某数是否为空
Function IsBlank(TempVar)
IsBlank = False
Select Case VarType(TempVar)
'Empty & Null
Case 0, 1
IsBlank = True
'String
Case 8
If Len(TempVar) = 0 Then
IsBlank = True
End If
'Object
Case 9
Dim tmpType
tmpType = TypeName(TempVar)
If (tmpType = "Nothing") Or (tmpType = "Empty") Then
IsBlank = True
End If
'Array
Case 8192, 8204, 8209
If UBound(TempVar) = -1 Then
IsBlank = True
End If
Case Else
IsBlank = True
End Select
End Function
标签:函数,asp
0
投稿
猜你喜欢
将有安全问题的SQL过程删除,比较全面
2007-08-06 14:46:00
直接生成XML的Google SiteMap的asp代码
2007-08-17 13:44:00
GOOGLE LOGO 设计演化过程
2008-02-13 19:41:00
深入了解MySQL的数据类型以及建库策略
2008-12-17 16:16:00
一个不错的网页拾色器
2007-09-30 19:45:00
SQL 比较一个集合是否在另一个集合里存在的方法分享
2011-12-01 10:19:26
从零开始写jQuery框架
2008-12-24 13:37:00
分享整理的12条sql语句连同数据
2012-07-11 16:14:59
oracle 分页 很棒的sql语句
2009-07-02 11:44:00
《JavaScript语言精粹》
2009-04-03 11:27:00
Web设计师的出路问题
2009-06-08 13:07:00
瞬间的设计 I
2009-12-25 18:54:00
PHP中单引号和双引号的区别详解
2023-05-25 08:16:51
单选的radia,和多选的checkbox如何判定选择?
2008-11-26 12:29:00
ASP中实现分页显示的七种方法
2007-09-20 13:19:00
CSS3 + HTML5 实现未来 Web 设计
2010-01-25 12:17:00
在firefox里如何实现firebug的DOM inspect选择功能?
2010-09-03 18:20:00
SQLServer 全文检索(full-text)语法
2011-12-01 10:38:22
sql server如何得到插入一条记录后最新的ID?
2009-11-15 20:06:00
利用sys.sysprocesses检查SqlServer的阻塞和死锁
2011-11-03 17:24:11