PC Review


Reply
Thread Tools Rate Thread

How do i get the values out of an ArrayList?

 
 
Jeroen Ceuppens
Guest
Posts: n/a
 
      24th Nov 2003
I made an arraylist; where i put in info about a colormap (256 entries with
each 4 values (ARGB))

How do I get the info out of the list?

Can I use arraylist[i] or arraylist[i][j] ?

Thx
JC


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      24th Nov 2003
Each object in the arraylist can be retrieved with
arraylist[i]

You will then need to cast this to the appropriate type - e.g. if you have
stored them as ints with the argb values then you can do

int somevalue = (int)myArrayList[1];

Dim something As Integer

something = CType(myArrayList(1), Integer)


Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Jeroen Ceuppens" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I made an arraylist; where i put in info about a colormap (256 entries

with
> each 4 values (ARGB))
>
> How do I get the info out of the list?
>
> Can I use arraylist[i] or arraylist[i][j] ?
>
> Thx
> JC
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to best get values from a multidimensional ArrayList? NET CF Questions Microsoft Dot NET Compact Framework 1 23rd May 2008 06:58 AM
How to access ArrayList values inside another ArrayList? Pavel Maly Microsoft C# .NET 6 30th Oct 2006 01:46 PM
Extracting values from ArrayList Sonny Sablan Microsoft ASP .NET 3 29th Jan 2005 01:31 PM
listbox bound to arraylist no changing values when values in arraylist are added or deleted Dave Microsoft VB .NET 0 11th Jan 2005 02:48 PM
RE: Iterate through an ArrayList using values in another ArrayList Saravanan Rathinavelu Microsoft C# .NET 4 26th Aug 2003 08:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:51 PM.