
| X = InputBox(Prompt, Title, Default Value) |
X variable is a string, and now holds what the user
inputs.
Sample Code
|
FavSite = InputBox("Enter your favorite site!", "nauts-crib.com example", "http://www.nauts-crib.com/") |
Prompt
Title
Default Value
You should end up with this:

If the user leaves the input
blank, vb will store it was ""

Like the message box, you can add
new lines
in your prompt, with the call
VbNewLine
Yes, thats the call,
you would use it like this..:
|
X = InputBox("Hey" & vbNewLine & "Guys" & vbNewLine & "Wassup?","nauts-crib.com","") |
You should end up with something like this..:
|
|

|
FavSite =
InputBox("Enter your favorite
site!", "nauts-crib.com example",
"http://www.nauts-crib.com/") |
The Break Down
| 1.
We set our input box to the
variable FavSite, FavSite, now holds the value of what the user enters
into our little box. 2. We set up a message box to tell the user what he/she picked, with an information picture. |
1999-2000 © Erik Helgesen
All Rights Reserved.
Only permitted Images and
Material may be downloaded from this web site.
PhotoShop, Flash, and
Microsoft Visual Basic are registered
trademarks!