|
-
Nov 9th, 2000, 05:53 PM
#1
Thread Starter
Addicted Member
Hello, I am having trouble grasping the whole concept around collections. I was just wondering if i could get a different point of view or an example.. Thanks
-
Nov 9th, 2000, 06:15 PM
#2
Hyperactive Member
i think..
As I understand it collections include different items for example on your form. There could be a collection of textboxes or commandbuttons. It can be usefull when you want to set values to all textboxes or other controls on your form. You would simply set up a loop that accounted for each item in the collection of textboxes. Hope this helps :-)
Matt 
-
Nov 9th, 2000, 06:39 PM
#3
MPrestonf12: I think you are referring to Arrays.
mpSmooth: A collection is basically used to organize data together. For example, if you needed to keep track of peoples name's, you could use a collection for it.
Code:
MyCollection.Add Text1
In the above example, (assuming you have a TextBox), whatever is entered in the TextBox would be entered in the collection; like a record.
-
Nov 9th, 2000, 06:58 PM
#4
transcendental analytic
I think MPrestonf12 is refering to Controlarrays
Collections are linked lists, sort of like arrays, but slower when it comes on accessing and faster when it comes to adding and removing items. Therefore i don't recommend you use it unless you are adding and removing items frequently.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 9th, 2000, 08:39 PM
#5
Thread Starter
Addicted Member
thank you
I understand what you are saying, thank you for clearing things up. I just was never sure when to use an array or a collection. Thanks again...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|