|
-
Feb 25th, 2005, 01:41 PM
#1
Thread Starter
Hyperactive Member
Really silly question (but still I need some help) [Resolved]
I have a TextBox called userAge. Assuming the user enters 40 in the textbox, how do I convert the string "40" into a number? I tried (int)userAge.Text but that of course fails.
What am I missing here?
Actually got it
Int32.Parse(userAge.Text) does the trick.
Last edited by VBGuy; Feb 25th, 2005 at 01:48 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|