sside
10-13-2004, 09:15 AM
Hello everybody
I can't get the sum from;
----------------------------------------------------------------------
resSum = SQLite.QueryToTable(db, "SELECT SUM(Age) FROM Contacts");
----------------------------------------------------------------------
I think the query is supposed to return a single value yet it returns a table;
resSum.ColumnNames
resSum.Rows
resSum.Data
resSum.Columns
If i have to insert the sum into a input object how would it be?
----------------------------------------------------------------------
Input.SetText("Input1", resSum...);
----------------------------------------------------------------------
Any idea would be appreciated
Thank you
Sside
I can't get the sum from;
----------------------------------------------------------------------
resSum = SQLite.QueryToTable(db, "SELECT SUM(Age) FROM Contacts");
----------------------------------------------------------------------
I think the query is supposed to return a single value yet it returns a table;
resSum.ColumnNames
resSum.Rows
resSum.Data
resSum.Columns
If i have to insert the sum into a input object how would it be?
----------------------------------------------------------------------
Input.SetText("Input1", resSum...);
----------------------------------------------------------------------
Any idea would be appreciated
Thank you
Sside