Solved

ArrayList of Objects Question

Posted on 2004-09-13
3
193 Views
Last Modified: 2013-11-13
Can anyone show me a simple example using Visual Basic .Net of how to use an arraylist of objects to: add to the arraylist, edit an item in the arraylist, delete an item in the arraylist, sort the arraylist and search the arraylist?

For example, if I had an arraylist containing name and SSN  how would these tasks be performed?

Thanks!
0
Comment
Question by:Ray Turner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

Accepted Solution

by:
Desp earned 250 total points
ID: 12051577
http://abstractvb.com/code.asp?A=1030

This link has all the question you want to get answers. There is no edit function in Arraylist. Also you need to cast an object before retreiving its values as Arraylist stores all kind of objects as *Object* type. Use the *Ctype* function to convert from Object type to your desired type

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
This is an explanation of a simple data model to help parse a JSON feed
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question