I have an ODBC result cursor that has 6000+ rows reported. I am trying to feed it into a VFP9 table.
My plan was simple:
My problem is that the array only loads 2748 records. After testing I found that the array size was fixed to the record count of the first table loop. I had to add a "RELEASE aname" statement at the end of the loop.
VFP9 did not re-dimension the array once it was created. After adding the RELEASE statement the process worked as expected.
Jon B
My plan was simple:
Code:
<LOOP for tables>
<ODBC query run here>
COPY TO ARRAY aname
SELECT table
APPEND FROM ARRAY aname
<ENDLOOP>
My problem is that the array only loads 2748 records. After testing I found that the array size was fixed to the record count of the first table loop. I had to add a "RELEASE aname" statement at the end of the loop.
Code:
<LOOP for tables>
<ODBC query run here>
COPY TO ARRAY aname
SELECT table
APPEND FROM ARRAY aname
RELEASE aname
<ENDLOOP>
VFP9 did not re-dimension the array once it was created. After adding the RELEASE statement the process worked as expected.
Jon B