We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What command should I use to make my program pause until the user presses a key?
#16
Hii Elzaimer
Your code was complicated i made a short version try this: PZPS756.000
but one problem is in SB timer cant restart so may be anyone help and improve the code so that timer can restart .

(06-24-2024, 12:30 PM)AbsoluteBeginner Wrote: Also, there doesn't seem to be any code in your "test" routine that tells the program what to do if no key is pressed. Therefore, the program does not stop and does not wait for a key to be pressed.
AB Was Right See My Example I Have Used Timer.
If No Key Is Pressed In 5 Second Then It Show "You Lost Starting Again In 5 Second"
But There Is Problem That With The Timer That It Doesn't Restart When We Have Give Correct Answer.
ZS
Reply


Messages In This Thread
RE: What command should I use to make my program pause until the user presses a key? - by z-s - 06-27-2024, 04:04 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)