S
SpotNet
Hi NewsGroup;
Trying to construct a Multidimensional (2D more specifically) populated from
an OleDbDataReader. Reason I'm using an ArrayList is I do not know the size
of the first dimension (being rows), here's my final attempt below;
System.Collections.ArrayList[,] GetDataMatrix = New
System.Collections.ArrayList[10, 3]; //Let's just say 10, 3
Keeping it brief and simple excuse the syntax,
GetDataMatrix[0,0].Add(15);
Throws an exception right at me stating that, 'Object reference is not an
instance of the object'. If only 'System.Collections.ArrayList' could talk
'cause I have a few hard words for it, well the multi-dimensional case
anyway. What am I doing wrong?
Many thanks and kind regards,
SpotNet
Trying to construct a Multidimensional (2D more specifically) populated from
an OleDbDataReader. Reason I'm using an ArrayList is I do not know the size
of the first dimension (being rows), here's my final attempt below;
System.Collections.ArrayList[,] GetDataMatrix = New
System.Collections.ArrayList[10, 3]; //Let's just say 10, 3
Keeping it brief and simple excuse the syntax,
GetDataMatrix[0,0].Add(15);
Throws an exception right at me stating that, 'Object reference is not an
instance of the object'. If only 'System.Collections.ArrayList' could talk
'cause I have a few hard words for it, well the multi-dimensional case
anyway. What am I doing wrong?
Many thanks and kind regards,
SpotNet