...

View Full Version : Convert integer to String



WilliamHolmes
06-20-2007, 04:51 PM
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.

WilliamHolmes
06-20-2007, 05:42 PM
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.

miranda
06-20-2007, 06:05 PM
You can also convert a numeric string to an integer by using CINT(string)
or to a long by using CLNG(string)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum