Print Page | Close Window

string 2 int

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2904
Printed Date: 29 March 2026 at 5:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: string 2 int
Posted By: coolnlstuff
Subject: string 2 int
Date Posted: 21 May 2003 at 4:49am

I have a form submitting a integervalue by Persists ASPUpload.

In the next asp-page I need it to be an integer, but I get the error:
Type mismatch: '[string: ""]'

How can I convert a string into an integer?




Replies:
Posted By: coolnlstuff
Date Posted: 21 May 2003 at 5:00am
I already found the solution, I forgot to call the Upload.Save method...so non of the form-items were passed to the other page.


Posted By: Bullschmidt
Date Posted: 31 May 2003 at 11:20pm
And just for reference an answer to your question of "How can I convert a string into an integer?" could be to use the CInt() or CLng() function.

-------------
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com - www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)


Posted By: coolnlstuff
Date Posted: 02 June 2003 at 7:50am

OK, tnx..I already figured that out..

Strange though i was making several asp pages with form submissions and suddenly the value of an integer wasn't passed to the next page as an integer, but as a string, so I had to use the CInt in my code whenever refering to that variable.

Tnx!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net