Android Question WebServer response

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
I ask to the ws to execute a sql, but the response is too late, so the other code of the button continues to move forward. How can I get immediatly the response, before execute all the other code of a button? :mad:
 

mc73

Well-Known Member
Licensed User
Longtime User
How are you quering the database? Using php/asp (by using httpUtils2) or a library? If the first, you should place the code to be executed next, in a sub called from the jobDone sub. In the second case, a choice is to query using a service, then wait for its recordSet to be initialized (or fail to) and proceed with your code. This can be achieved by using a timer, yet, normally, I think that such libraries respond almost immediately.
 
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello, I query the database whit a ws created with Delphi XE2.
Can I use JodDone however?
 
Upvote 0
Top