Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert String to Int 1

Status
Not open for further replies.

irate

Programmer
Jan 29, 2001
92
GB
Does anyone know how to covert a string to an int in ASP ?

i have a list of strings such as 01, 02, 03, 04, 05... ...09, 10, 11, 12 etc.

if the string to convert is 02 for example i want it to convert to 2 as an int, but if its 12 for example i want it to convert to 12 as an int...

i tried val(string) but i dont think that is valid in asp.
 
Oopps Sorry all i already found out how to do it...


<% querystringint = Cint(querystringint) %>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top