when i have for example...
dbADM.QueryASync2("Select id from apertura")
the procedure not raise immediately, first finish the sub and then raise the "Sub ADMDamir_QueryResult2"
there are some way to raise immediately?
i need to set the flag, with the query...
this is my code...
dbADM.QueryASync2("Select id from apertura")
the procedure not raise immediately, first finish the sub and then raise the "Sub ADMDamir_QueryResult2"
there are some way to raise immediately?
i need to set the flag, with the query...
this is my code...
B4X:
Sub btnAceptar_Click
dbADM.QueryASync2("Select id from apertura")
If BooApertura = False Then
ToastMessageShow("Horario Aperturado",False)
Else
ToastMessageShow("Ok para Apertura",False)
End If
End Sub
Sub btnSalir_Click
Activity.Finish
End Sub
Sub ADMDamir_QueryResult2(data As List, meta As Map)
If meta <> Null Then
BooApertura = True
Msgbox("Listo para Apertura","Apertura")
Else
BooApertura = False
Msgbox("Ya existe","Query")
End If
End Sub