home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
genapps
/
rquery3.arj
/
PRNPICK.APP
< prev
next >
Wrap
Text File
|
1991-12-09
|
3KB
|
107 lines
$COMMAND
PRNPICK
SET ERROR VAR ERVAR
SET VAR VpQUOTES = (CVAL("QUOTES"))
IF ERVAR NE 0 THEN
SET VAR VpQUOTES = (CVAL('QUOTES'))
SET QUOTES=NULL
SET QUOTES="
ENDIF
SET ERROR VAR OFF
CLEAR VAR ERVAR
SET VAR VpNULL = (CVAL("NULL"))
SET VAR VpMESS = (CVAL("MESSAGES"))
SET VAR VpERMESS = (CVAL("ERROR"))
SET VAR VpFILES = (CVAL("FILES"))
SET VAR VpBELL = (CVAL("BELL"))
SET VAR VpPLUS = (CVAL("PLUS"))
SET VAR VpAND = (CVAL("AND"))
SET MESSAGES OFF
DEBUG SET MESSAGES ON
CONNECT PRD
SET ERROR MESSAGES OFF
DEBUG SET ERROR MESSAGES ON
NEWPAGE
SET BELL OFF
CLS
WRI "╔═══════════════════════════════════════════════╗" AT 8 16 YELLOW ON BLACK
WRI "║ Printer Driver Select System ║" AT 9 16 YELLOW ON BLACK
WRI "║ version 1.01 ║" AT 10 16 YELLOW ON BLACK
WRI "║ ║" AT 11 16 YELLOW ON BLACK
WRI "║ Revised: 11/23/1991 ║" AT 12 16 YELLOW ON BLACK
WRI "║ Written in Rbase 3.1 by Jerry A. Horton ║" AT 13 16 YELLOW ON BLACK
WRI "║ ║" AT 14 16 YELLOW ON BLACK
WRI "║ Copywrite (C) 1991, All rights reserved. ║" AT 15 16 YELLOW ON BLACK
WRI "║ ║" AT 16 16 YELLOW ON BLACK
WRI "║ Jerry A. Horton ║" AT 17 16 YELLOW ON BLACK
WRI "╚═══════════════════════════════════════════════╝" AT 18 16 YELLOW ON BLACK
SET VAR VT TIME
SET VAR VT TO (.#TIME + 3)
WHILE #TIME LT .VT THEN
ENDWHILE
CLEAR VAR VT
CLS
SET VAR VPRINT TEXT
SET VAR VPRINT TO PDRIVER IN PRINTERS WHERE CPICK EQ 1
SET PRINTER .VPRINT
CLEAR VAR VPRINT, VT
SET VAR PRDPK1 INT
SET VAR LVEL1 INT
SET VAR LVEL1 TO 0
WHILE LVEL1 EQ 0 THEN
NEWPAGE
CHOOSE PRDPK1 FROM PRINTSET IN PRNPICK.APX
IF PRDPK1 EQ 0 THEN
BREAK
ENDIF
IF PRDPK1 EQ 1 THEN
LABEL PRNPICK
EDIT USING PCHOOSE ORDER BY PCOMPANY
COMPUTE VCPICK AS COUNT CPICK FROM PRINTERS WHERE CPICK EQ 1
IF VCPICK GT 1 THEN
CLS
BEEP
WRITE " YOU HAVE CHOOSEN MORE THAN ONE PRINTER DRIVER !" AT 10 10 +
YELLOW ON BLACK BLINK
WRITE "PRESS ANY KEY TO RETURN TO PRINTER CHOICE MENU..." AT 12 10 +
YELLOW ON BLACK
PAUSE
GOTO PRNPICK
ENDIF
SET VAR VPRINT TEXT
SET VAR VPRINT TO PDRIVER IN PRINTERS WHERE CPICK EQ 1
SET PRINTER .VPRINT
CLEAR VAR VPRINT, VPICK, VCHAR, VCHECK, CVPICK
ENDIF
IF PRDPK1 EQ 2 THEN
EDIT USING PEDIT ORDER BY PMODEL
UPDATE PRINTERS SET CPICK = 0 WHERE CPICK IS NULL
ENDIF
IF PRDPK1 EQ 3 THEN
BREAK
ENDIF
ENDWHILE
SET NULL= .VpNULL
SET QUOTES=NULL
SET QUOTES= .VpQUOTES
SET FILES= .VpFILES
SET BELL= .VpBELL
SET PLUS=NULL
SET PLUS=&VpPLUS
SET AND .VpAND
SET MESSAGES= .VpMESS
SET ERROR= .VpERMESS
CLEAR VAR VpNULL, VpQUOTES, VpFILES, VpBELL, VpPLUS
clear var VpMESS, VpERMESS, VpAND
NEWPAGE
CLEAR VARIABLES LVEL1, PRDPK1
RETURN
$MENU
PRINTSET
COLUMN |PRINTER SETUP MENU|
|PICK TYPE OF PRINTER FOR APPLICATION|
|ADD / UPDATE PRINTER TYPES|
|EXIT|
ENDC