bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
LPOS Function Details
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
LPOS returns the number of characters sent to the printer since the last
carriage return was sent.
 
LPOS(n%)
    ■ The argument n% is the index of the printer being tested:
         LPT1 would be tested with LPOS(1) or LPOS(0).
         LPT2 would be tested with LPOS(2).
         LPT3 would be tested with LPOS(3).
 
Usage Notes
    ■ The LPOS function does not necessarily give the physical position of
      the print head because it does not expand tab characters. In addition,
      some printers may buffer characters.