Given an Object Array [private object[] objArr;] which houses DataSets (ds) with corresponding Index (Index) [objArr[Index] = ds;]
I want to retrieve (ds) corresponding to the Index supplied and store it in a dataset [rec].
Code:
rec = objArr[Index];
First of all, does this method return the object corresponding to the Index supplied? [i.e.: if I put objArr[1]) if I do objArr[1] it should return the ds right?].
My problem seems to stem from the fact that it is returning an OBJECT which I am trying to save as a Dataset [rec], I assume I must cast it back as a Dataset?
Any clues?
I want to retrieve (ds) corresponding to the Index supplied and store it in a dataset [rec].
Code:
rec = objArr[Index];
First of all, does this method return the object corresponding to the Index supplied? [i.e.: if I put objArr[1]) if I do objArr[1] it should return the ds right?].
My problem seems to stem from the fact that it is returning an OBJECT which I am trying to save as a Dataset [rec], I assume I must cast it back as a Dataset?
Any clues?
Last edited: