Hello,
I am using ExecuteRemoteQuery to insert some data in a MySQL Database.
I have a button when users clicks it there are three statements run:
sub Button_Clicked
button.enabled = false
ExecuteRemoteQuery(query1) --duration approx 7 sec
ExecuteRemoteQuery(query2) --duration approx 3 sec
ExecuteRemoteQuery(query3) --duration approx 11 sec
button.enabled = true
end sub
At the beginning of the query I make the button disabled in order to prevent that users clicks it again. But the button becomes enabled even if the queries before the queries are completed.
How to prevent this?
I am using ExecuteRemoteQuery to insert some data in a MySQL Database.
I have a button when users clicks it there are three statements run:
sub Button_Clicked
button.enabled = false
ExecuteRemoteQuery(query1) --duration approx 7 sec
ExecuteRemoteQuery(query2) --duration approx 3 sec
ExecuteRemoteQuery(query3) --duration approx 11 sec
button.enabled = true
end sub
At the beginning of the query I make the button disabled in order to prevent that users clicks it again. But the button becomes enabled even if the queries before the queries are completed.
How to prevent this?