PRINT / PR
PRINT print list
Supported by: COMX BASIC V1.00, Floating Point BASIC 2.2, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, Quest Super BASIC 1.4, 3.0, 5.0 and 6.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
PR is used as an abbreviation for PRINT. In a listing, PR's are replaced with PRINT'S. The purpose of this statement is to output to the I/O routines any expr or string function as defined earlier. Each of the items to be printed must be separated by an acceptable delimiter, either a comma or a semicolon. Each of the delimiters serves a special function. When a comma is used, the next item to be printed is placed at the next eighth column increment called "printing-zone". When a semicolon is used, no spaces are inserted and the next item is printed directly after the last. The semicolon and comma also serve to inhibit the carriage return at the end of PRINT statement. The next PRINT statement encountered in the program, therefore, will begin where the previous one left off. If a PRINT statement is used all by itself, then a carriage return/ line feed is outputted. There are two functions that are usable only in a PRINT statement: TAB (expr) and CHR$ (expr). Examples of acceptable PR statements are as follows:
PRINT 5 PRINT A PR (A+B)/C PR A, B, 1234, C (5) PR "THE VALUE OF A= "; A PR A$ (1) + A$ (2) PR A$ (2), A, B; PRINT MID$ (A$, 1, 2) PRINT TAB (A+B); 10; TAB (30); E PR A PR
Note that when more than one arithmetic expression appears in a PRINT statement, each expression may be evaluated in a different mode.