Assume you have a text box named textBox.  Write some code that inputs the value in the text box into a variable name and then outputs “Greetings, NAME” to a message box (where NAME is replace by the value that was input read in the variable.  For example, if the text box originally contained “Rachel” your code would display “Greetings, Rachel” in the message box.

LANGUAGE: Visual Basic

CHALLENGE:

Assume you have a text box named textBox.  Write some code that inputs the value in the text box into a variable name and then outputs “Greetings, NAME” to a message box (where NAME is replace by the value that was input read in the variable.  For example, if the text box originally contained “Rachel” your code would display “Greetings, Rachel” in the message box.

SOLUTION:

name = textBox.Text
MessageBox.Show("Greetings, " & name)