Hello my friends,
I use MSMySQL lib from @DonManfred. I use a for-loop to get about 10 Async Selects.
If a user has low internet ("E"-Edge), async results are not sorted well. So i use a Sleep(500). But neither Sleep always get results at correct order. I think this problem occurs because all queries are async. Maybe thats why are different order every time i try this code.
I use MSMySQL lib from @DonManfred. I use a for-loop to get about 10 Async Selects.
B4X:
For i = 0 To dateList.Size-1
Log(startDate)
startDate=dateList.Get(i)
Main.db.QueryASync("SELECT astynomikos.agms, convert(cast(convert(ypiresies_db.ypiresia using latin1) as binary) using utf8) as ypiresia, ypiresies_db.orario, daily.ypiresiaid_" & startDate.Replace("-","_") & ".id_ypiresias FROM astynomikos, ypiresies_db, daily.ypiresiaid_" & startDate.Replace("-","_") & " WHERE astynomikos.agms=" & Main.agms & " AND astynomikos.agms=daily.ypiresiaid_" & startDate.Replace("-","_") & ".agms AND ypiresies_db.ypiresia_id=daily.ypiresiaid_" & startDate.Replace("-","_") & ".id_ypiresias;","allData")
'Sleep(500)
Next