Sign in to follow this  
Followers 0
Kwayetus

Another very simple question..

3 posts in this topic

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. >___<

Share this post


Link to post
Share on other sites



$name = InputBox("Title goes here","What is your Name?","")
MsgBox (0, "title goes here", "Hello " & $name)


[size="5"] [/size]

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Kwayetus

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0