Original Author Paul Laughton, 2011
Page 91
De Re BASIC!
MenuKey.resume
Resumes execution at the point in the BASIC! program where the OnMenuKey: interrupt occurred.
OnKeyPress:
Interrupt label that traps a tap on any key. BASIC! executes the statements following the OnKeyPress:
label until it reaches a Key.resume.
Key.resume
Resumes execution at the point in the BASIC! program where the OnKeyPress: interrupt occurred.
OnLowMemory:
Interrupt label that traps the Android "low memory" warning. BASIC! executes the program lines
between the OnLowMemory: interrupt label and the LowMemory.resume command.
If Android is running out of memory, it may kill applications running in the background, but first it will
broadcast a "low memory" warning to all applications. If you do not have an OnLowMemory: label in
your program, you will see "Warning: Low Memory" printed on the Console.
LowMemory.resume
Resumes execution at the point in the BASIC! program where the OnLowMemory: interrupt occured.
End{ <msg_sexp>}
Prints a message and stops the execution of the program. The default message in "END". You can use
the optional <msg_sexp> argument to specify a different message. The empty string ("") prints nothing,
not even a blank line. The End statement always stops execution, even if the statement has an error.
End statements may be placed anywhere in the program.
Exit
Causes BASIC! to stop running and exit to the Android home screen.
READ DATA RESTORE Commands
These commands approximate the READ, DATA and RESTORE commands of Dartmouth Basic.
Read.data <number>|<string>{,<number>|<string>...,<number>|<string>}
Provides the data value(s) to be read with Read.next.
Read.data statements may appear anywhere in the program. You may have as many Read.data
statements as you need.
Example:
Read.data 1,2,3,"a","b","c"