You can delete names and numbers by editing the NAMES variable.
To improve upon this program, create a delete name routine.
Beeping to Get Attention
To enter BEEP in a program:
1.Enter a number that specifies the tone frequency in hertz.
2.Enter a number that specifies the tone duration in seconds.
3.Enter the BEEP command (!°L%OUT% Lmenu).
«… frequency duration BEEP … »
BEEP takes two arguments from the stack: the tone frequency from level 2 and the tone duration from level 1.
Example: The following edited version of TPROMPT sounds a
Program: | Comments: |
|
|
« |
|
"ENTER a, b IN ORDER:" | Sounds a tone just |
440 .5 BEEP | before the prompt for |
PROMPT | data input. |
TORSA |
|
» |
|
|
|
Stopping a Program for Keystroke Input
A program can stop for keystroke input — it can wait for the user to press a key. You can do this with the WAIT and KEY commands.
Using WAIT for Keystroke Input
The WAIT command normally suspends execution for a specified number of seconds. However, you can specify that it wait indefinitely until a key is pressed.
To enter WAIT in a program
To stop without changing the display, enter 0 and the WAIT command (PRG IN menu).
To stop and display the current menu, enter
WAIT takes the 0 or
For an argument of
When execution resumes, the
To respond to WAIT while running a program:
Press any valid keystroke. (A prefix key such as !or ~by itself is not a valid keystroke.)