|
-
Jun 23rd, 2001, 10:48 PM
#1
Thread Starter
Hyperactive Member
text box input
how can i check to see if a user put something in a text box?
-
Jun 23rd, 2001, 10:54 PM
#2
sorry if you read the first post I made, I seem to have misread the question . Use this :
VB Code:
If Trim(Text1.Text) = "" Then
MsgBox "Nothing there"
End If
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 23rd, 2001, 10:58 PM
#3
Thread Starter
Hyperactive Member
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.....
-
Jun 23rd, 2001, 11:00 PM
#4
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
-
Jun 23rd, 2001, 11:08 PM
#5
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|