Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Convert integer to String

    Hi im having a problem comparing a string to an integer.

    eg. if request.QueryString("Page") = PageCounter then ...

    PageCounter is an integer the queryString is a string

    Does anyone have and function or know how i can compare these two variables ?

    Im using ASP VB Script

    Thanks.
    Last edited by WilliamHolmes; 06-20-2007 at 06:31 PM.

  • #2
    New Coder
    Join Date
    Jun 2007
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ALL DONE !!

    Sorry... I have just figured out i can convert the integer to a string by using...

    CStr(PageCounter)

    I hope this is helpful to someone else.

    Thanks.

  • #3
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts
    You can also convert a numeric string to an integer by using CINT(string)
    or to a long by using CLNG(string)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •