I got big problem when I want to reset value of Global variable and Button text.
My purpose:
1. In initial time, my Button have text = "Start" and Global variable isMoving == 1.
2. After first click my Button must have text = "Stop" and Global variable isMoving is reset to isMoving == 0.
3. After second click my Button must have text = "Start" again and Global variable isMoving must be equal 1.
But actually, when program is launched, my Button text == "Start" after few clicks..?? and I guess my Global variable isMoving == 0.... <img src="smileys/smiley3.gif" border="0" align="middle" />
Could some one help me pls. Because very specific purpose I could use only one button.
My program like below
Global number isMoving =1
Button | On clicked
(if) System|isMoving = 0 -->Button|Set text to "Stop"
- -->System|Set isMoving to 1
(else) System|isMoving = 1 --> Button|Set text to "Start"
-->System|Set isMoving to 0