Concatentation
I change some code on page 58 "TRY OUT" "Concatenation"
I using two Concatenation Symbols and Quotation Symbol. The code works,
but is the code wright?
Private Sub btnConcatenation_Click(sender As Object, e As EventArgs) Handles btnConcatenation.Click
'Declare variables
Dim strResults As String
Dim strOne As String
Dim strTwo As String
'Set the string values
'This different than in the book, I did not put space before World,
'I used two Concatenation symbols
strOne = "Hello"
strTwo = "World"
'Concatenate the strings and add a space between Hello and World,
' I used two Concatenation symbols
'This is different than in the book
strResults = strOne & " " & strTwo
'Display results
MessageBox.Show(strResults, "Strings")
End Sub
End Class
__________________
Frank
|