Results 1 to 2 of 2

Thread: Really silly question (but still I need some help) [Resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    The Big D
    Posts
    310

    Resolved 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
  •  



Click Here to Expand Forum to Full Width