ArrayList question

J

JL

In a class I declared some array lists. I then try to fill them from
but get an index error. Here is how I am trying to do this

Public Class BasicReport

Public ShipmentNumber As New ArrayList
Public ShipmentTime As New ArrayList
<then the rest of the class code>

I then try to acces it this way:

Dim i as Integer
For i = 0 to 10
BasicReport.ShipmentNumber.Add("some info")
BasicReport.ShipmentTime.Add("a time")
Next

The error comes on the first .Add attempt. I think this must be a
simple problem but I am stumped.

TIA,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

newbie: ArrayList memory leak? 3
ArrayList 1
ArrayList memory problem 3
Problem with arraylist 1
ArrayList in Thread question 6
ArrayList Strongly Typed 24
Add Arraylist to Arraylist 3
Serialization Question 3

Top