Hi,
The Following Query in the code below is executed without error in an external program but fails to produce any output in B4A (No Errors Either)
Dim SQLDataBase As SQL
SQLDataBase.Initialize(File.DirRootExternal, "MyData.db", False)
Dim SEHrs As String
SQLDataBase.ExecQuery("SELECT SUM(strftime('%H',SE_Hours)) As SEHrs From LogBook" )
Log(SEHrs)
Where MyData.db is the database, SE_Hours is a column containing time in hh:mm format, LogBook is the table within the database.
Even a simple query like
SQLDataBase.ExecQuery("SELECT strftime('%H','20:30:45'))
shows no output and no errors either but executes in an external program.
What am I missing here ??
Do help.
Thanks
:sign0085:
The Following Query in the code below is executed without error in an external program but fails to produce any output in B4A (No Errors Either)
Dim SQLDataBase As SQL
SQLDataBase.Initialize(File.DirRootExternal, "MyData.db", False)
Dim SEHrs As String
SQLDataBase.ExecQuery("SELECT SUM(strftime('%H',SE_Hours)) As SEHrs From LogBook" )
Log(SEHrs)
Where MyData.db is the database, SE_Hours is a column containing time in hh:mm format, LogBook is the table within the database.
Even a simple query like
SQLDataBase.ExecQuery("SELECT strftime('%H','20:30:45'))
shows no output and no errors either but executes in an external program.
What am I missing here ??
Do help.
Thanks
:sign0085: