dim variable as boolean = False
ExecuteRemoteQuery(my_query, USER)
Sleep(300) 'I use the pause to wait for a response, but sometimes it is not enough.
If variable=True Then 'The variable changes its value on JobDone depending on the result
ExecuteRemoteQuery(my_next_query,OTHERS)
End If
Is there any other way instead of using the sleep?
Thanks for any response