01-28-2016, 03:45 AM
Hi,
I have not used Quick Macros in quite some time and it has changed a lot from then. I used to Parse Excel files but my old code does not work any longer. Searching the Forum for an answer has no produced any good results.
My question is how do you use this code to read more than one line of the excel file:
Changing the flag on the select statement just does not work for me.
Excel. As table name, use [worksheet name$]. First row is used for headers.
Database db2.Open(db2.CsExcel("$documents$\book1.xls"))
ARRAY(str) a2; int c2
db2.QueryArr("SELECT * FROM [Sheet1$] " a2 1)
for c2 0 a2.len
out a2[c2]
I have not used Quick Macros in quite some time and it has changed a lot from then. I used to Parse Excel files but my old code does not work any longer. Searching the Forum for an answer has no produced any good results.
My question is how do you use this code to read more than one line of the excel file:
Changing the flag on the select statement just does not work for me.
Excel. As table name, use [worksheet name$]. First row is used for headers.
Database db2.Open(db2.CsExcel("$documents$\book1.xls"))
ARRAY(str) a2; int c2
db2.QueryArr("SELECT * FROM [Sheet1$] " a2 1)
for c2 0 a2.len
out a2[c2]