Jump to content

Another very simple question..


Recommended Posts

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...