1
! @(#)printlog.prg 19.1 (ES0-DMD) 02/25/03 14:08:59
2
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
! MIDAS procedure printlog.prg to implement PRINT/LOG
5
! K. Banse 910104, 920121, 920207
7
! executed via @ printlog page_def
8
! where page_def = pstart,pend from pstart to pend (incl)
9
! page_no only that page
13
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15
DEFINE/PARAM P1 1,9999 N "Enter pages to print: "
16
WRITE/KEYW INPUTI/I/15/2 {P1},{P1}
18
DEFINE/LOCAL OLDLOG/I/1/1 {LOG(1)}
19
LOG/OFF !turn logging off
23
IF OLDLOG .NE. 0 LOG/ON
24
IF MID$PRNT(1:1) .EQ. "T" RETURN
25
IF MID$PRNT(1:1) .EQ. "F" RETURN
27
ERROR(6) = ERROR(3) !save current error flag
28
@ print.prg print !send file to chosen printer