Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does GetRows() method return a transposed array?

Im using a Adodb connection and reading the result of a query into an array with

array = recordSet.GetRows()

which leads to a transposed array of dimensions

(row,col)

(0, 0)

(0, 1)

(0, 2)

instead of

(row,col)

(0, 0)

(1, 0)

(2, 0)

so it should be a 3 x 1 not 1 x 3 array Any suggestions ?

like image 844
Stackoverflow Nutzer Avatar asked Sep 16 '25 17:09

Stackoverflow Nutzer


1 Answers

It is because it is returning an Array containing (intField, intRecord):

https://msdn.microsoft.com/en-us/library/office/ff194427.aspx

So it's a matter of different interpretation in the way that intField is basically the Column and intRecord the Row (both zero-based).

like image 109
Maarten van Stam Avatar answered Sep 18 '25 07:09

Maarten van Stam