All pastes #928650 Raw Edit

MicrobZ

public text v1 · immutable
·published 2008-03-05 05:34 UTC
rendered paste body
Function is_Integer(num)
' author : MicrobZ
' Date   :  04/03/2008
' desc   : check if given expression is integer

If (IsNumeric(num)) Then
    num = CStr(num)
    If InStr(1, num, ".")  Then
        is_Integer = False
        Exit Function
    End If
Else
is_Integer = False
Exit Function
End If

is_Integer = True

End Function