Wrox Programmer Forums
BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1
This is the forum to discuss the Wrox book Professional Visual Basic 2008 by Bill Evjen, Billy Hollis, Bill Sheldon, Kent Sharkey; ISBN: 9780470191361
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 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 December 15th, 2008, 03:50 AM
Authorized User
Join Date: Dec 2008
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Page 28 Mulitdimentional Array is not correct.

On page 28 it reads:
"The next line of code, the fourth, shows an alternative way of creating the same array, but in this case there are four elements, each containing four elements, with subscripts from 0 to 3 at each level."

The line of code referenced is on page 27 and reads:

"Dim arrMyIntArray4( , ) as Integer = _
{ {1, 2, 3},{4, 5, 6},{7, 8, 9},{10, 11, 12},{13, 14, 15} }"
I believe this text is in error because the referenced line of code is an array of 5 elements each containing an array of 3 elements.

Based on the Visual Basic Array definition the first level would have subscripts 0 - 4 and the second level would have subscripts 0 - 2 which would actually make the following part of the statement "shows an alternative way of creating the same array," true.

"Dim arrMyIntArray3(4,2) as Integer"
Need free one on one help getting started with Visual Basic? Contact me via http://patrickcambria.com its free.

Last edited by Patrick Cambria; December 16th, 2008 at 05:55 AM.. Reason: Adding signature.
Old December 15th, 2008, 10:40 PM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

Clearly you are correct. Betcha somebody was translating from a C# example and blew the translation.
Old March 6th, 2009, 01:43 PM
Registered User
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Additionally, on page 28 in the second paragraph under topic "Mulitdimensional Arrays" the example that states "arrMyIntArray4(2,3) is 12" is wrong as well. This drove me crazy until I read this posting.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting String Array From one page to another page Samatha ASP.NET 1.0 and 1.1 Professional 1 December 6th, 2006 03:54 AM
Ch 28 exercise using Eclipse keeotee BOOK: Beginning JavaServer Pages 1 April 2nd, 2006 12:09 PM
Tomcat 5.0.28 and Oracle 9i etpoole Apache Tomcat 0 June 17th, 2005 04:18 PM
Urgent - 28# Out of Stack Space narooma.12 Oracle 1 December 31st, 2004 06:10 AM
pass array from a page to page apek PHP How-To 3 January 30th, 2004 03:33 PM

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