Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
Mnemonic: | (CR) |
Discussion: |
Cursor return/carriage return.
This control code can be used on a video device or a printer.
Video device In typewriter mode, this control code scrolls the screen up one line (forcing the top line off the screen) and will move the cursor to the beginning (left side) of the bottom line on the screen.
Printer |
Example (video): |
a. 100 FORMAT (CR) . PRINT (0,100) b. PRINT (0) (CR) |
Example (printer): |
a. 100 FORMAT "CUSTOMER LISTING";(CR);"PRINTED ON:";DAY$ . OPEN (1) "LP1" . PRINT (1,100) b. OPEN (1) "LP1" . PRINT (1) "CUSTOMER LISTING";(CR);"PRINTED ON:";DAY$This example prints a heading, performs a carriage return, and then prints a subheading on the next line. |