Original Author Paul Laughton, 2011
Page 96
De Re BASIC!
Note: Font.delete leaves a marker in the font list, so pointers to other fonts will not be affected. That is
why you can Font.delete the same font more than once. Font.clear clears the entire list, making all font
pointer variables invalid. After executing Font.clear, you can't Font.delete any of the cleared fonts.
Console I/O
Output Console
BASIC! has three types of output screens: The Output Console, the Graphics Screen, and the HTML
Screen. This section deals with the Output Console. See the section on Graphics for information about
the Graphics Screen. See the section on HTML for information aobut the HTML screen.
Information is printed to screen using the Print command. BASIC! Run-time error messages are also
displayed on this screen.
There is no random access to locations on this screen. Lines are printed one line after the other.
Although no line numbers are displayed, lines are numbered sequentially as they are printed, starting
with 1. These line numbers refer to lines of text output, not to locations on the screen.
Print {<exp> {,|;}} ...
? {<exp> {,|;}} ...
Evaluates the expression(s) <exp> and prints the result(s) to the Output Console. You can use a question
mark (?) in place of the command keyword Print.
If the comma (,) separator follows an expression then a comma and a space will be printed after the
value of the expression.
If the semicolon (;) separator is used then nothing will separate the values of the expressions.
If the semicolon is at the end of the line, the output will not be printed until a Print command without a
semicolon at the end is executed.
Print with no parameters prints a newline.
Examples: