desof Well-Known Member Licensed User Longtime User Jan 7, 2014 #1 I have two calls in a row to ExecuteRemoteQuery thus Code: Copy Sub PlayButton_Action ExecuteRemoteQuery("SELECT * FROM Simplexxxx WHERE ID ='" & txID1.text & "'",List1) ExecuteRemoteQuery("SELECT * FROM Simplexxxx WHERE ID ='" & txID2.text & "'",List2) MainForm.Close End Sub and then immediately the application must be closed so that has to be but I've noticed that sometimes ends realizarce consultation .. How can you expect to both queries or porcesos that may be performed?
I have two calls in a row to ExecuteRemoteQuery thus Code: Copy Sub PlayButton_Action ExecuteRemoteQuery("SELECT * FROM Simplexxxx WHERE ID ='" & txID1.text & "'",List1) ExecuteRemoteQuery("SELECT * FROM Simplexxxx WHERE ID ='" & txID2.text & "'",List2) MainForm.Close End Sub and then immediately the application must be closed so that has to be but I've noticed that sometimes ends realizarce consultation .. How can you expect to both queries or porcesos that may be performed?
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2014 #3 ExecuteRemoveQuery is an asynchronous call. You should handle JobDone. When the second task completes close the app. Upvote 0
ExecuteRemoveQuery is an asynchronous call. You should handle JobDone. When the second task completes close the app.
desof Well-Known Member Licensed User Longtime User Jan 8, 2014 #4 Erel said: ExecuteRemoveQuery is an asynchronous call. You should handle JobDone. When the second task completes close the app. Click to expand... ? http://www.b4x.com/android/forum/threads/executeremotequery.32718/#post-190780 An example would be like this EREL Upvote 0
Erel said: ExecuteRemoveQuery is an asynchronous call. You should handle JobDone. When the second task completes close the app. Click to expand... ? http://www.b4x.com/android/forum/threads/executeremotequery.32718/#post-190780 An example would be like this EREL
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2014 #5 This link is exactly what you need to do. Upvote 0