|
-
Feb 14th, 2003, 01:49 PM
#1
Thread Starter
Addicted Member
msgbox getting a string
how can i get a string prompted from my user?
ex.: i click a button, it shows a message box asking for something, like your name, how can i do this???
Thank you,
Guilherme Costa
-
Feb 14th, 2003, 01:50 PM
#2
Use the InputBox function.....
-
Feb 14th, 2003, 01:52 PM
#3
Thread Starter
Addicted Member
How do you use this input box??
-
Feb 14th, 2003, 01:56 PM
#4
Frenzied Member
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
-
Feb 14th, 2003, 02:03 PM
#5
New Member
Originally posted by gccosta
How do you use this input box??
Type the word "Inputbox" click on it and press F1.
Bingo !
-
Feb 14th, 2003, 05:09 PM
#6
InputBox is much like MsgBox, but it returns a string. This is not the worlds best function, and I rarely use it, but it sure is fast to implement. I don't like it because it is so constrained in appearance and functionality.
-
Feb 14th, 2003, 06:05 PM
#7
Hyperactive Member
VB Code:
Dim strName As String
strName = InputBox("Please enter your name below then press enter.", "Enter your name please")
Select Case LCase(strName)
Case ""
MsgBox "You didn't enter a name, silly.", vbOKOnly + vbInformation, "Bah!"
Case "carp"
MsgBox "You're not Carp, Carp made this small example for you though", vbOKOnly + vbInformation, "Silly"
Case Else
MsgBox "Your name doesn't seem to be in our case, Try something else!", vbOKOnly + vbInformation, "Who are you?!?!?"
End Select
Kevin Carpenter
Currently Working in the CAOS (CA Operating System) Group
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
|