Write Your First Visual Basic Program

Lesson 2
Tutorials - Page 1 - Page 2 - Page 3 - Page 4 - Page 5 - Page 6 - Page 7 - Page 8 - Page 9 - Page 10 - Page 11 - Page 12 - Page 13

Working With Strings (Continue)
You can join two Strings together using the "+" operator.
Example:

Dim gogo As String
Dim popo As String
gogo = "Hello"
popo = "world"
gogo = gogo + " !!! " + popo
Print gogo



The code below will print Hello !!! world on the form.
The expression  gogo + " !!! " + popo  is equal to
Hello + " !!! " + world  and that's equal to "Hello !!! world"
So eventually, the command that will be executed is gogo = "Hello !!! world"

Back  Forward