Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>isprinter()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ISPRINTER()


Syntax:     ISPRINTER()

Purpose:    To determine whether LPT1 is ready.

Returns:    A logical value.

            ISPRINTER() returns true (.T.) if LPT1 is ready; otherwise
            it returns false (.F.).

Usage:      ISPRINTER() only works on IBM BIOS compatible systems.

Library:    EXTEND.LIB

Source:     EXAMPLEA.ASM


----------------------------------- Example --------------------------------

   @ 22, 17 SAY "Press any key to print"
   @ 23, 38 SAY "or Esc to abort..."
   key = 0
   DO WHILE key <> 27 .AND. (.NOT. ISPRINTER())
      key = INKEY(0)
   ENDDO
   @ 22, 00 CLEAR


See Also: SET DEVICE SET PRINT

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson