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
Solved

ArrayList of Objects Question

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Scripting vs. Programming languages 25 179
egit plugin on eclipse 8 82
Query group by data in SQL Server - cursor? 3 47
AvlTree-Node Data type 4 12
A short article about problems I had with the new location API and permissions in Marshmallow
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …

840 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