PDA

View Full Version : question again



airpumpkin
04-07-2005, 08:00 AM
hi,

meat problem again. how can I input all the items in a table got by sqlite?
the main difficulty is that I can't get how many items in the table.


THX

Worm
04-07-2005, 08:15 AM
Use Table.Count to find the number of rows in the table. That'll tell you how many records you have.

airpumpkin
04-07-2005, 08:33 AM
I have tried this, but I can't get the correct result.
it only returns me 4, they are ColumnNames, Rows, Data, Columns.

Worm
04-07-2005, 09:09 AM
Sorry I should have read more carefully.

Use: .Rows

tblRecordSet = SQLite.QueryToTable(...

for n=1, tblRecordSet.Rows do

end

airpumpkin
04-07-2005, 09:17 AM
thx Worm! it works correctly.