Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2012 > Beginning Visual Basic 2012
|
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 14th, 2014, 07:17 PM
Authorized User
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Did any body check your work:? Code errors again

Page 160 item 2. If you see the code in the book, the code is different than what is in your "Download Code". I trying to lean VB and you are not doing a very good job of teaching! You were doing great until chapter 5. This is the second time is this chapter. Go to page 158 item
2. "Public Sub DisplayCustomer(customer As Customer)". That line should be:
"Public Sub DisplayCustomer( ByVal customer As Customer)". The is no excuse for these errors accept sloppy writing and proofing. And at least you could have reviewed the book after publishing or before publishing and did "errata", like some of the good authors do!!!
__________________
Frank
 
Old November 17th, 2014, 09:00 PM
Wrox Author
 
Join Date: Mar 2006
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Both lines of code are correct. ByVal is the default for a parameter. Parameters are passed by value unless ByRef is specified. You can use either line and they will compile to exactly the same code. Please download VS 2012 versions as you continue through the book instead of using the 2013 version.
 
Old November 18th, 2014, 12:14 AM
Authorized User
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default I give up

How come in you "Beginning Visual Basic 2008" book, the code is almost perfect. But the code in "Beginning Visual Basic 2012. I have to use the download code before the code works?? Especially in chapter 5, ByVal is not
in the book, but in the download code. All the code works great when I change the book code to the download code, in 2013. In fact I am using your 2008 book to check your 2012 book code.
__________________
Frank





Similar Threads
Thread Thread Starter Forum Replies Last Post
Check my work! iceandrews XSLT 0 August 29th, 2013 01:12 PM
Code errors vbboyd BOOK: Beginning ASP.NET 4.5 : in C# and VB 1 January 14th, 2013 03:17 AM
JS to check for form Validation does not work - pl jennypretty Classic ASP Basics 4 December 11th, 2008 11:18 PM
code clinic - Why wont example asp code work? jardbf Classic ASP Basics 3 April 27th, 2006 06:22 PM
Printing Errors / Example Code Fire BOOK: Access 2003 VBA Programmer's Reference 0 April 12th, 2005 02:52 PM





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