Solved

ArrayList of Objects Question

Posted on 2004-09-13
3
188 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now