您的位置:无忧脚本
» 随风缘的个人空间
» 日志
Function之判断是否为空
上一篇 /
下一篇 2007-08-02 08:37:15
/ 个人分类:asp源码
Function IsBlank(ByRef 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
End Select
End Function
导入论坛
收藏
分享给好友
推荐到圈子
管理
举报
TAG: