FancyPrairie
Programmer
I have a query: "Select a, b from table1" which I open using ado. I then dump the contents of the recordset to an array using GetRows. Looks something like this:
My question is, how to I reference the various dimensions of MyArray. I have tried about every combination (i.e. MyArray[0][0], etc) but no luck. In Debug I can see the structure and values. Looks something like this:
So, what's the syntax for retrieving "value0"?
Code:
blah, blah, blah...
rst.open "Select"....
MyArray = rst.GetRows
Code:
- MyArray
+ (0)
+ (1)
If I expand (0), it looks like this in debug:
- MyArray
- (0)
(0) value0
(1) value1
(2) value2
(n) valuen
+ (1)
So, what's the syntax for retrieving "value0"?