Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 6th, 2003, 12:24 PM
Registered User
 
Join Date: Aug 2003
Location: New Canaan, CT, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Collections question

In an example in Beginning VB.Net about the use of collections I am mystified about one aspect. The example is fairly close to the following:

dim customer as CustomerStruct ' multiple members
dim CustHash as new Hashtable

...populate customer

me.list.add(customer) ' A collection was allocated previous
CustHash.add(key, customer)

My questions concern the last 2 statements. Is the addition of customer to me.list in memory separate from the memory allocated to customer in the hashtable? If so, why would I want to do this? Can't I always retrieve customer from the hashtable?

I think the example is probably not trying to illustrate the best way to do something but rather is trying to provide a more complete exposition on the use of collections.

I would appreciate any feedback, particularly if I am missing something.

Best regards,
Greg
email: glvereschagin@armstrong.com
Closed Thread


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
collections help bennyt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 July 26th, 2008 01:30 AM
Collections and Recordsets MLC1985 Beginning VB 6 10 August 1st, 2007 09:13 AM
Question on Collections/Arrays/ArrayList csharplearner C# 2 October 13th, 2005 06:05 PM
Collections in C#? shenku C# 1 August 17th, 2005 06:16 AM



All times are GMT -4. The time now is 09:48 AM.


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