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