Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Repeat 0, While 1. //both can be used, use what feels right for you.
- Disp "TEST PROGRAM
- Disp "1.SHOW A
- Disp "2.SHOW B
- Disp "3.EXIT
- Repeat Ans
- getKey->K
- End
- /////////////////////
- //the user will push "1" (getkey code 92) or "2" (getKey value 93) To
- //pick the menu option they want
- //Repeat is best used here, because as long as Ans = 0 (No key pressed)
- //Then the loop will continue.
- ////////////////////
- If K= 92
- //Key press of 1
- Pause "A"
- If K=93
- //Key Press of 2
- Pause "B"
- If K=94
- Return
- End
- //This will loop until the user breaks the program or 3 is pressed because
- //the Repeat 0 or While 1 at the top makes it an infinite loop
Advertisement
Add Comment
Please, Sign In to add comment