孤独的猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Function IsInt(str)

    If IsNumeric(str) or  (len(str)>5) then

        IsInt=False

        Exit Function

    Else

        If (len(str)<5) then

            IsInt=True

            Exit Function

        Else

            If CInt(left(str,4))>3276 then

                IsInt=False

                Exit Function

            Else

                If CInt(Left(str,4))=3276 and CInt(Right(str,1))>7 then

                    IsInt=False

                    Exit Function

                Else

                    IsInt=True

                End If

            End If    

        End If

    End If

End Function

posted on 2008-09-19 14:32  孤独的猫  阅读(128)  评论(0编辑  收藏  举报