[thelist] Fw: ASP If statement gone nuts

Ken Schaefer ken at adOpenStatic.com
Sun Aug 3 20:09:59 CDT 2003


Just make sure that you check that the value can be cast an an Integer
before you cast it:

<%
intMonth = Request.QueryString("month")
If isNumeric(intMonth) then
    intMonth = CInt(intMonth)
Else
    intMonth = Month(Date())
End If
%>

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Lightening" <oktellme at earthlink.net>
Subject: [thelist] Fw: ASP If statement gone nuts


: You can see my (fixed) calendar at
: > www.whitelightening.net/buzzell/calendar.asp
:
:
: Daniel and Gary - your CINT worked like a dream.
:
: Thank you very much! (whew!!!!)
: Laura



More information about the thelist mailing list