Hey, guys
Is there any way to stop the previous event when I start the new event?
example:
When I press the button the routine will show me 1, 2, 3, 4.
If I press the button again, I want the previous event to be stopped before the new event starts.
ex. 1,2 (I pressed the button) 1,2,3,4.
thanks
Is there any way to stop the previous event when I start the new event?
example:
When I press the button the routine will show me 1, 2, 3, 4.
If I press the button again, I want the previous event to be stopped before the new event starts.
ex. 1,2 (I pressed the button) 1,2,3,4.
thanks
B4X:
Sub PanelEdBtPlay_Click
edEfeito.Text = "1 "
EditText1.Text = edEfeito.Text
SendMessage(Array As Byte(EditText1.Text))
edLogTemp.Text = edLogTemp.Text & EditText1.Text
Sleep(1000)
edEfeito.Text = "2 "
EditText1.Text = edEfeito.Text
SendMessage(Array As Byte(EditText1.Text))
edLogTemp.Text = edLogTemp.Text & EditText1.Text
Sleep(1000)
edEfeito.Text = "3 "
EditText1.Text = edEfeito.Text
SendMessage(Array As Byte(EditText1.Text))
edLogTemp.Text = edLogTemp.Text & EditText1.Text
Sleep(1000)
edEfeito.Text = "4 "
EditText1.Text = edEfeito.Text
SendMessage(Array As Byte(EditText1.Text))
edLogTemp.Text = edLogTemp.Text & EditText1.Text
Sleep(1000)
End Sub