Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2012 > Beginning Visual Basic 2012
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning Visual Basic 2012
This is the forum to discuss the Wrox book Beginning Visual Basic 2012 by Bryan Newsome; ISBN: 978-1-118-31181-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning Visual Basic 2012 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 3rd, 2014, 10:34 PM
Authorized User
Points: 101, Level: 2
Points: 101, Level: 2 Points: 101, Level: 2 Points: 101, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2005
Location: Stockton, ca, USA.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2 (permalink)  
Old November 4th, 2014, 04:58 PM
Wrox Author
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: , , .
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

That looks correct Frank.
Reply With Quote
  #3 (permalink)  
Old November 4th, 2014, 09:22 PM
Authorized User
Points: 101, Level: 2
Points: 101, Level: 2 Points: 101, Level: 2 Points: 101, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2005
Location: Stockton, ca, USA.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excellent learning tool

Thank You, for your help!
__________________
Frank
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
String maniuplation and concatentation ehrens XSLT 2 July 6th, 2006 02:03 PM



All times are GMT -4. The time now is 11:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.