Assume that name has been declared suitably for storing names (like “Amy”, “Fritz” and “Moustafa”)  Write some code that areads a value from a text box named textBox into name then prints the message “Greetings, NAME!!!” where NAME is replaced the value that was read into name.  For example, if your code read in “Hassan” it would print out “Greetings, Hassan!!!”.

LANGUAGE: Visual Basic

CHALLENGE:

Assume that name has been declared suitably for storing names (like “Amy”, “Fritz” and “Moustafa”)  Write some code that areads a value from a text box named textBox into name then prints the message “Greetings, NAME!!!” where NAME is replaced the value that was read into name.  For example, if your code read in “Hassan” it would print out “Greetings, Hassan!!!”.

SOLUTION:

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