Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ArrayList of Objects Question

Posted on 2004-09-13
3
Medium Priority
?
198 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:
Fahad Mukhtar earned 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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 …
Simple Linear Regression

722 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