Quote:
> How do you check that a parallel dot matrix printer is online in
> QuickBasic?
' **************************************************
' * PRNTEST.BAS *
' * *
' * Test Printer Ready *
' * *
' * Judson D. McClendon *
' * Sun Valley Systems *
' * 329 37th Court N.E. *
' * Birmingham, AL 35215 *
' * 205-853-8440 *
' **************************************************
'
' $INCLUDE: 'QBX.BI'
'
' Must link with QBX.LIB: LINK PRNTEST,,,QBX;
'
DIM Regs AS RegType, Printer AS INTEGER
DO
INPUT "Enter Printer (1,2,3):", Printer
LOOP WHILE (Printer < 1 OR Printer > 3)
Regs.ax = &H200
Regs.dx = Printer - 1
CALL Interrupt(&H17, Regs, Regs)
IF ((Regs.ax AND &H2800) OR (Regs.ax AND &H1000) = 0) THEN
PRINT "Printer not ready"
ELSE
PRINT "Printer ready"
END IF
END
--
Judson McClendon This is a faithful saying and worthy of all
Sun Valley Systems acceptance, that Christ Jesus came into the
(please remove zzz from email id to respond)