Kwayetus Posted April 17, 2010 Share Posted April 17, 2010 If I want to ask someone a question, then after they click enter it would type like "Hello (whatever he entered)" I tried : $name = InputBox("title", "What is your name") MsgBox (0, "title", "Hello $name") Apparently, that doesn't work. The problem is in the "Hello $name". I tried "Hello" + $name but that doesnt work. Sorry for this stupid question. Don't know anything about this yet. >___< Link to comment Share on other sites More sharing options...
Fire Posted April 17, 2010 Share Posted April 17, 2010 $name = InputBox("Title goes here","What is your Name?","") MsgBox (0, "title goes here", "Hello " & $name) [size="5"] [/size] Link to comment Share on other sites More sharing options...
Kwayetus Posted April 17, 2010 Author Share Posted April 17, 2010 (edited) oh so its the & command. Thank you! Another question : If I want to get sums or differences? $num1 = InputBox ("SDPQ", "Please input any number without decimal places.") $num2 = InputBox ("SPDQ", "Please input another number without decimal places.") MsgBox (0, "SPDQ", "The sum of the two numbers is " & $num1 + $num2 & @CRLF & "The difference of the two numbers is " & $num1 - $num2 & @CRLF & "The product of the two numbers is " & $num1 * $num2 & @CRLF & "The difference of the two numbers is " & $num1 / $num2) Whats the error there? EDIT: Nevermind, fixed it. Edited April 17, 2010 by Kwayetus Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now