Populate an array using GetRows (1 Viewer)

jeffreyccs

New member
Local time
Today, 07:05
Joined
Nov 10, 2012
Messages
29
Hi

I would like to populate an arrray using the GetRows method, however I would like to use Base 1 and using GetRows defaults to Base 0 even hough Option Base 1 is set.

Is this possible or should I use a different method to populate the array.

Any advice would be appreciated

Regards

Jeff
 

tvanstiphout

Active member
Local time
Today, 07:05
Joined
Jan 22, 2016
Messages
222
What is the bigger picture of what you're trying to do? Maybe we can suggest alternatives.
Not that it's difficult to do the mental leap from 1 to 0 :)
 

jeffreyccs

New member
Local time
Today, 07:05
Joined
Nov 10, 2012
Messages
29
Thanks for your feedback

I have populated the array by looping through a recordset.

Regards

Jeff
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 10:05
Joined
Feb 19, 2002
Messages
43,275
A recordset IS an array so there is no need to read one array into a different array. Just use the recordset directly. One situation where you might use an array (you could also use a recordset) is if you need to generate a mortgage amortization schedule. You start with three variables. The loan amount, the term, and the number of payments per year. Then using a loop, you fill a multidimensional array with the year, month, principal, interest, LoanBalance.
 

Users who are viewing this thread

Top Bottom