Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2008 > BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 15th, 2008, 03:50 AM
Authorized User
 
Join Date: Dec 2008
Location: Keyport, NJ 07735
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:

Code:
 
"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.

Code:
"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.
  #2 (permalink)  
Old December 15th, 2008, 10:40 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

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

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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 08:36 AM.


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