I'm getting the Error Message (see subject) on this function when varNumber actually equals an integer.
Can someone help me on this?
Here is my Function:
TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
Can someone help me on this?
Here is my Function:
Code:
Function CheckInt(varNumber)
On Error Resume Next
Response.Write "Number To Check:" & varNumber & "<br>"
If Err.Number <> 0 Then
Response.Write "Error Before Check<br>"
Else
Response.Write "No Error Before Check<br>"
End If
CInt(varNumber)
If Err.Number <> 0 Then
Response.Write "Error After Check<br>"
CheckInt = "No"
Else
Response.Write "No Error After Check<br>"
CheckInt = "Yes"
End If
Response.Write "Error Desc: " & Err.Description & "<br>"
End Function
TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner