Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - string 2 int
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

string 2 int

 Post Reply Post Reply
Author
coolnlstuff View Drop Down
Newbie
Newbie
Avatar

Joined: 26 April 2003
Location: Netherlands
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote coolnlstuff Quote  Post ReplyReply Direct Link To This Post Topic: string 2 int
    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?



Edited by coolnlstuff
Back to Top
coolnlstuff View Drop Down
Newbie
Newbie
Avatar

Joined: 26 April 2003
Location: Netherlands
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote coolnlstuff Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Bullschmidt View Drop Down
Groupie
Groupie


Joined: 31 May 2003
Location: United States
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bullschmidt Quote  Post ReplyReply Direct Link To This Post 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
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)
Back to Top
coolnlstuff View Drop Down
Newbie
Newbie
Avatar

Joined: 26 April 2003
Location: Netherlands
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote coolnlstuff Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.