Results 1 to 3 of 3

Thread: [Resolved]-help with text boxes and numbers

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    13

    Resolved [Resolved]-help with text boxes and numbers

    Hey, this is a very noobish question!

    i got sum text boxes and the user puts sum numbers into the text boxes
    when they press the command button it adds the numbers the user put in and displays them, but say i put "1" in text1 and "1" in text2 and pressed the command, i get 11, what declirations are needed?

    VB Code:
    1. text3.text = text1.text + text2.text

    please help
    Last edited by theasker; May 23rd, 2005 at 01:24 AM.

  2. #2
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Re: [simple]-help with text boxes and numbers

    use
    text3 = cint(text1.text) + cint(text2.text)

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    13

    Re: [simple]-help with text boxes and numbers

    thanx! and sorry for being such a noob!

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