How do I check to see if a submitted value is an INT?
am 04.01.2007 18:49:00 von MSUTechIs there an easy way to check to make sure a submitted value is an int or
double, as opposed to a varchar ... ?
thanks
Is there an easy way to check to make sure a submitted value is an int or
double, as opposed to a varchar ... ?
thanks
"MSUTech"
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()
Mike Brind wrote on 04 jan 2007 in
microsoft.public.inetserver.asp.general:
> "MSUTech"
>> 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)
"Evertjan."
news:Xns98AEDEE221CFBeejj99@194.109.133.242...
> Mike Brind wrote on 04 jan 2007 in
> microsoft.public.inetserver.asp.general:
> > "MSUTech"
> >> 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.
Anthony Jones wrote on 05 jan 2007 in
microsoft.public.inetserver.asp.general:
>
> "Evertjan."
> news:Xns98AEDEE221CFBeejj99@194.109.133.242...
>> Mike Brind wrote on 04 jan 2007 in
>> microsoft.public.inetserver.asp.general:
>> > "MSUTech"
>> >> 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)