COLOR BASIC
EXTENDED COLOR BASIC
DISK EXTENDED COLOR BASIC
PRINT #buffer, data list
Prints the data to the buffer.
Use a comma or semicolon to separate each item in the list.
PRINT #1, “DATA”
PRINT USING
PRINT #buffer, USING “format”; data list
Prints the data to the buffer, using the format you specify.
The format is a string; enclose it in quotation marks.
The format commands are:
# Holds a space for one digit. . Prints a decimal point. , Prints a comma immediately preceding every 3rd digit (counting to the left from the decimal point.) ** Files leading spaces with asterisks. $ Prints a leading dollar sign. $$ Prints a floating dollar sign. + Prints the sign of the number. To print the sign in front of the number, place the plus sign at the beginning of the format string. To print the sign following the number, place the plus sign at the end of the format string. ^^^^ Prints the number in exponential format. - Prints the minus sign after the number if the number is negative. This command does not print a sign if the number is positive. Place the minus sign at the right end of the format string. ! Prints the first character of the string. %spaces% Sets the field fo the string. The length of the field is the number of spaces plus 2.
PRINT #1, USING “##.#”; 53.76
PRINT #2, USING “* *$#.##-”;-3.678
PRINT #1, USING “!”; “WHITE”