Results 1 to 5 of 5

Thread: text box input

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    MN
    Posts
    362

    text box input

    how can i check to see if a user put something in a text box?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    sorry if you read the first post I made, I seem to have misread the question . Use this :

    VB Code:
    1. If Trim(Text1.Text) = "" Then
    2.   MsgBox "Nothing there"
    3. End If

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    MN
    Posts
    362
    thanks...what's 'Trim' do though?

    ya see, I'll have 5 text boxes and the user will only need to put info in 2 of any box. And I want to check to see which 2 the user put info in.....

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Trim() just taking off any leading or trailing spaces.

    Like if Text1.Text = "     Hello ", then Trim(Text1.Text) would equal "Hello"

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5
    Addicted Member Dementia Freaks's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    132

    Cool Also...

    Also, try this. It is pretty much the same.

    if text1.text="" then
    msgbox "Please insert text"
    end if

    as for wanting to see what is put into the 2 text boxes, try this:

    msgbox=text1.text
    msgbox=text2.text

    i dunno if thats what u mean, but if it is, u will get two message boxes showing the text. I made a prog once, taht was pass protected, and it showed a message box, with the password, if the password put in both boxes was the same. If thats what you mean, try this:

    if text1.text=text2.text then
    msgbox "You chose: " & text1.text & " As your password."
    end if

    Maybe those will help.
    Gray FOX: "Only a fool, trusts his life to a Weapon!"

    Bart Simpson: "Bart no like! Baaad medicene!"

    www.sling.to/dementia-freaks <<<---Goto my site!

    http://pub80.ezboard.com/bdementiafreaksforum <<<---Goto my forum!

    Thats it!

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