Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

(LS)

Mnemonic: (LS)
Discussion: Line feed suppress.

The (LS) control code suppresses the line feed for the current print line. Subsequent data written to the printer will not be followed by an automatic line feed. The control is normally used to overstrike, make bold characters, or underscore portions of a print line. The (LS) control is in effect only for current print line and must be used at the beginning of the FORMAT statement.

Example:
100  FORMAT (LS);"CUSTOMER HISTORY REPORT",@(0);_
            (CR);"_______________________",@(0)
     .
     OPEN (1) "LP1"
     .
     PRINT (1,100)
This example uses the linefeed suppress control code to underscore the heading of a report. The (LS) control code is placed at the beginning of a FORMAT statement, followed by the heading to be printed. The (CR) control code returns the print head to the beginning of the line, but does not perform a line feed, due to the (LS) control in effect. Finally, a series of underline characters are printed (underscoring the heading).