Verifying is it Number or String

Hi,

can anyone tell me the code to verify that is the input a number or string

For example

Dim X
X=Request.QueryString("theNumber")

Now what to do on X to verify that is it a number or string
Umer Saleem
Lahore - Pakistan
luckyumer@yahoo.com
Mob: 0092 321 4257504

Comments

  • : Hi,
    :
    : can anyone tell me the code to verify that is the input a number or string
    :
    : For example
    :
    : Dim X
    : X=Request.QueryString("theNumber")
    :
    : Now what to do on X to verify that is it a number or string
    : Umer Saleem
    : Lahore - Pakistan
    : luckyumer@yahoo.com
    : Mob: 0092 321 4257504
    :

    if you gonna check in asp, you should use the IsNumeric function, returns a boolean value, if is a number then returns true, if is a string (i.e. not a number) then return false.

    hope is what you need..

  • You solved my problem thanks very much
    it was easy :D
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories