How do i get the values out of an ArrayList?

  • Thread starter Thread starter Jeroen Ceuppens
  • Start date Start date
J

Jeroen Ceuppens

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 or arraylist[j] ?

Thx
JC
 
Each object in the arraylist can be retrieved with
arraylist

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
 
Back
Top