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 integer

Status
Not open for further replies.

Technos

Programmer
Mar 15, 2002
47
US
hey,
I need to convert string number (which i'm extracting from string) to an integer in ASP code.
anybody help????
I tried
index= Int32.parse(strIndex)
also
index= Convert.ToInt32(strIndex)

but its giving me error objrct required
HELP PLEASE
THANKS
 
Thanks Guys,
index = CInt(strindex)
or
index = CLng(strindex)

Worked.
even val(strindex) didn't worked
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top