Wrox Programmer Forums
|
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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 June 9th, 2004, 10:08 AM
Registered User
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.net 2K3 Ch. 5 Confusion page 150

Hi
I am trying to follow the code in this book, but I am getting lost in Chapter 5 when it talks about structure and array list. When it starts of talking about Structures on the bottom of page 150, it said in Chapter 4 the idea of classes where introduced. Chapter 4 deals with If, Select Case and loop statements and I did not see any references to building my own classes. Can someone please tell me where in chapter 4 this is covered?

Thanks
Ralph
 
Old June 9th, 2004, 11:04 AM
Registered User
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I found the problem, please see my email to Wrox Tech Support

*Email Begin
Hello
I have come across something else that I need clarification on.

In chapter 5 when begining to talk about Structures, you menion that classes where covered in Chapter 4. Chapter 4 is all about Loops and If else clauses. Nothing about classes. I looked up the previous version of this book on amazon and I saw that the chapters are listed in different orders which clears up my confusion. I my book the chapters go like this.
Ch1. Welcome to VB.net
Ch2. .Net Framework
Ch3. Writing Software
Ch4. Controlling the Flow
Ch5. Wroking with Data Structures
.
Ch10. Building Objects
And so on...

In the Previous Version the chapters are listed like this (Taken from Amazon.com [http://www.amazon.com/gp/reader/0764...#reader-page]:
Ch1. Welcome to VB.Net
Ch2. Writing Software
Ch3. Controlling the Flow
Ch4. Building Object
Ch5. .Net frameworks
Ch6. Working With Data Structures.
And so on

So my question to you is, do I need to read Ch. 10 before I read Chapter 5 since you make reference to understanding Classes in chapter 5 with out ever going over them until Chatper 10? If so, are there any other changes like this I need to make to understand this book?

*Email End

 
Old June 9th, 2004, 11:14 AM
Authorized User
 
Join Date: Jun 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JonathanC
Default


Unfortunately you have found a discrepency that was not fixed.

Please see
http://p2p.wrox.com/topic.asp?TOPIC_ID=13607

for a little more info on the changes.

Jonathan Crossland
http://www.jonathancrossland.com
 
Old June 9th, 2004, 12:02 PM
Registered User
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jonathan,
Thanks for the reply (great book so far by the way), I looked at the other post but I am still confused about something. Do I need to read ch. 10 before ch. 5? Do you know if this will get fixed in a next release? Do you know of any other discrepencies like this I should be aware of?

Thanks Again!

 
Old June 9th, 2004, 12:26 PM
Authorized User
 
Join Date: Jun 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JonathanC
Default


I am terribly sorry for the confusion. I know how hard it is to get started in a language and this type of confusion does not help.

This is what I suggest.

Do not go to chapter 10 yet.
Ignore the small amount of text under the heading Structures and read this *new* definition instead. After that continue on with the Try it out section. Later when you get to chapter 10, review the differences that you have been presented with.

Structures
A structure is a grouping of variables.
it would combine variables in such as way that it has a "structure".
So instead of creating two unrelated variables like this

    Public Firstname as String
    Public LastName as String

we put it in a structure like this.

Public Structure Customer
    Public Firstname as String
    Public LastName as String
End Structure


Now you can access the two variables under the structure like so.
<NameOfStructure>.<NameOfVariable>
example: Customer.FirstName

The benefit is cleaner code and structured variables.

This is all you need to know about structures for where you are in the book at this point.
The Try it out section will help you understand how to use it, so I suggest you continue on with this chapter and read chapter 10 when you get there.

I hope this helps.







Jonathan Crossland
http://www.jonathancrossland.com
 
Old June 9th, 2004, 12:30 PM
Registered User
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jonathan,
Thanks alot for the help.

Ralph






Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net 2.0 (VB) error try it out ch 5 pg 160 rdixon2005 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 January 10th, 2008 02:37 PM
Confusion about VB 2005 Naveed44000 Visual Basic 2005 Basics 1 February 21st, 2006 10:01 PM
VB.Net 2nd,Ch 18,Pg752: Addresses() jesneed BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 June 29th, 2004 04:47 PM
Chapter 5 page 150 - Wondering why.... potassium Beginning PHP 3 July 27th, 2003 12:05 AM





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