How do I check to see if a submitted value is an INT?

How do I check to see if a submitted value is an INT?

am 04.01.2007 18:49:00 von MSUTech

Is there an easy way to check to make sure a submitted value is an int or
double, as opposed to a varchar ... ?

thanks

Re: How do I check to see if a submitted value is an INT?

am 04.01.2007 21:47:14 von Mike Brind

"MSUTech" wrote in message
news:29834860-D207-4EF3-877F-4EF545C76C77@microsoft.com...
> Is there an easy way to check to make sure a submitted value is an int or
> double, as opposed to a varchar ... ?
>
> thanks

IsNumeric()

Re: How do I check to see if a submitted value is an INT?

am 04.01.2007 21:54:37 von exjxw.hannivoort

Mike Brind wrote on 04 jan 2007 in
microsoft.public.inetserver.asp.general:
> "MSUTech" wrote in message
>> Is there an easy way to check to make sure a submitted value is an
>> int or double, as opposed to a varchar ... ?
>
> IsNumeric()

A submitted value,
as retrieved by the request object,
is always a string,
IMHO.

Perhaps the Qs could be:

Can it be converted to a number?
and can that number be represented as an integer?


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: How do I check to see if a submitted value is an INT?

am 05.01.2007 00:17:17 von Anthony Jones

"Evertjan." wrote in message
news:Xns98AEDEE221CFBeejj99@194.109.133.242...
> Mike Brind wrote on 04 jan 2007 in
> microsoft.public.inetserver.asp.general:
> > "MSUTech" wrote in message
> >> Is there an easy way to check to make sure a submitted value is an
> >> int or double, as opposed to a varchar ... ?
> >
> > IsNumeric()
>
> A submitted value,
> as retrieved by the request object,
> is always a string,
> IMHO.
>
> Perhaps the Qs could be:
>
> Can it be converted to a number?
> and can that number be represented as an integer?


Give us a break!!

The intent of the post is very clear.

Re: How do I check to see if a submitted value is an INT?

am 05.01.2007 15:16:21 von exjxw.hannivoort

Anthony Jones wrote on 05 jan 2007 in
microsoft.public.inetserver.asp.general:

>
> "Evertjan." wrote in message
> news:Xns98AEDEE221CFBeejj99@194.109.133.242...
>> Mike Brind wrote on 04 jan 2007 in
>> microsoft.public.inetserver.asp.general:
>> > "MSUTech" wrote in message
>> >> Is there an easy way to check to make sure a submitted value is an
>> >> int or double, as opposed to a varchar ... ?
>> >
>> > IsNumeric()
>>
>> A submitted value,
>> as retrieved by the request object,
>> is always a string,
>> IMHO.
>>
>> Perhaps the Qs could be:
>>
>> Can it be converted to a number?
>> and can that number be represented as an integer?
>
>
> Give us a break!!
>
> The intent of the post is very clear.

To you perhaps, I doubt that the OP knew.

And even so, there are many other readers that think a
request object value can be NUL.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)