Hi All,
I have a problem with a Mysql query and was wondering if anyone may know how to use a 'Wait For' with a non Acync Single Result Query.
I believe my code is moving on before I get a valid result from the query so the 'If Then' is always processed.
Thanks
I have a problem with a Mysql query and was wondering if anyone may know how to use a 'Wait For' with a non Acync Single Result Query.
I believe my code is moving on before I get a valid result from the query so the 'If Then' is always processed.
B4X:
Dim result as Int = 0
result = Sql.ExecQuerySingleResult2("SELECT count(*) FROM trip WHERE tripDate = ? AND tripType = ?",Array As String(searchDate &"%","D"))
'
If result = 0 then
do something ....
End If
Thanks