Hi All,
I have a large Mysql data set and want to halt the read sub routine until the Mysql result is returned.
If I am not mistaken then the 'Wait For' will do this.
My question is how to do this?
Is Wait for sql_Success correct?
Thanks
I have a large Mysql data set and want to halt the read sub routine until the Mysql result is returned.
If I am not mistaken then the 'Wait For' will do this.
My question is how to do this?
B4X:
Sub getLocation(rec as int)as string
Dim latlng As String = sql.ExecQuerySingleResult("SELECT location FROM address WHERE addrID = "&rec&"")
Wait for sql_Success
Return latlng
End Sub
Is Wait for sql_Success correct?
Thanks