Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 2nd, 2014, 02:34 PM
Authorized User
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Comma Question

Chapter 1, page 22 Code: Private Sub btnOK_Click(sender as Object, e As EventArgs) Handles btnOK.Click
'Display a message box greeting to user
MessageBox.Show ("Hello, "& txtName.Text & _ "! Welcome to Visual Basic 2010.", <- Why does this comma put this message in the caption?
And should be message be 2012 instead of 2010?

Also using the Hungarian Notation --should the form be frmForm1?
__________________
Frank
 
Old November 2nd, 2014, 10:19 PM
Wrox Author
 
Join Date: Mar 2006
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

That is the separator for the parameters. The second parameter is the caption of the message box. If you are using Hungarian Notation it would be frm and then a name that would make sense for the object. In this case, maybe frmExample.

Bryan
 
Old November 2nd, 2014, 10:53 PM
Authorized User
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Explanation of the Comma

I understand a comma is a delimiter, separator, etc. But where do I find the code or an explanation why?, when that comma is put there is does that action. In the book it does not say why the comma does this action!

Thank You
__________________
Frank
 
Old November 2nd, 2014, 11:23 PM
Wrox Author
 
Join Date: Mar 2006
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I still may not 100% understand your question. That is explained in detail in chapter 11. The parameters create method other signatures. The method has many ways to call it, various parameters that create overrides. It will all make more sense as you work your way through the book.

Here is the microsoft page on the class. http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx
 
Old November 3rd, 2014, 01:30 AM
Authorized User
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question Answered

Thank You, all this information helped me!
__________________
Frank





Similar Threads
Thread Thread Starter Forum Replies Last Post
Comma Operator phuc_tran BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 6 June 12th, 2009 04:46 PM
Comma Separated values aldwinenriquez SQL Server 2005 3 June 1st, 2007 08:52 PM
How do I get rid of this comma?!?!?!?! tsindos Classic ASP Databases 10 February 16th, 2006 12:55 AM
How to get rid of this comma!!?! gilgalbiblewheel Classic ASP Databases 15 August 8th, 2005 06:41 PM
comma problem! Ashleek007 Beginning PHP 2 April 17th, 2005 04:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.