Hi
I have an issue with trying to pause execution and restart it again based on a specific button press.
Here's what's happening.
Part of my code triggers a container to show.
The container slides onto the screen using a timer. [slide('up')]
The container holds 2 command buttons. 'Accept' and 'Decline'
The buttons change the value of a variable (m.confirm_data) when clicked where 'Accept'=1 and 'Decline'=2
The problem is that when you click the mouse the WAIT is cleared and the code begins to execute again as expected
but the 'click' event does not trigger for the command button so the value of m.confirm_data does not change
so the 'if' statement is always false.
Any ideas?
I have an issue with trying to pause execution and restart it again based on a specific button press.
Here's what's happening.
Part of my code triggers a container to show.
The container slides onto the screen using a timer. [slide('up')]
The container holds 2 command buttons. 'Accept' and 'Decline'
The buttons change the value of a variable (m.confirm_data) when clicked where 'Accept'=1 and 'Decline'=2
The problem is that when you click the mouse the WAIT is cleared and the code begins to execute again as expected
but the 'click' event does not trigger for the command button so the value of m.confirm_data does not change
so the 'if' statement is always false.
Any ideas?
Code:
*some code*
m.confirm_data=0
slide('up')
WAIT ''
*at this point the user clicks either accept or decline.
*either one will take the code out of wait mode
*but neither buttons click event will be triggered so m.confirm_data will remain as 0
if m.confirm_data=1
*more code*
endif