txt, 1017 Bytes
txt, 1017 Bytes

BASIC COMPUTER PROGRAMING CLEARING THE BUFFER

When you press Enter in a BASIC computer program, the computer stores it and acts on it when it gets a chance. The reason for this is there may be a lag in responding to typing and the computer does not want to lose information. This can cause a problem. If you press ENTER several times the computer will do it again and again even though you meant for only one repetition to be done. There are times you want to clear the buffer, clear commands to get a new clean chance to enter new commands. This is a way to do this: REPEAT X$=INKEY$(0) UNTIL X$="" EXPLAINATION: REPEAT gets an action UNTIL a condition is met. INKEY$(0) takes information from the buffer(keystrokes you make or have made) When all this information is used up, the buffer is cleared. X$="" means the buffer is cleared.
Creative Commons "Sharealike"

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have downloaded this resource can review it

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.