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 14th, 2014, 06:17 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 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
Reply With Quote
  #2 (permalink)  
Old November 17th, 2014, 08:00 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

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.
Reply With Quote
  #3 (permalink)  
Old November 17th, 2014, 11:14 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 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
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
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 02:17 AM
JS to check for form Validation does not work - pl jennypretty Classic ASP Basics 4 December 11th, 2008 10: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



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


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