home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG102.ARC
/
RESETCON.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
68 lines
*RESETCON.PRG
*THIS PROGRAM ALLOWS THE RESETTING OF THE MEMORY/DISK STORED VARIABLES LIKE
*RECEIPT , CREDIT AND INVOICE NUMBERS
DO WHILE T
ERASE
@ 1,0 SAY '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
@ 3,0 SAY ' THIS PROGRAM WILL RESET FORM NUMBERS'
@ 5,0 SAY ' PRESS THE KEY INDICATED TO SELECT THE FORM REQUIRED'
@ 7,0 SAY ' KEY...................SYSTEM'
@ 9,0 SAY ' 1 INVOICE'
@ 10,0 SAY ' 2 RECEIPTS'
@ 11,0 SAY ' 3 CREDITS'
@ 12,0 SAY ' 4 CHEQUE'
@ 13,0 SAY ' R RETURN'
@ 15,0 SAY '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
SET TALK OFF
WAIT TO DEC
DO CASE
CASE DEC='1'
RESTORE FROM A:CONSTANT
ERASE
STORE '..' TO CHEK
@ 2,0 SAY ' THIS IS THE NEXT AVAILABLE INVOICE NUMBER ' GET PINVNUM
@ 3,0 SAY ' CHANGE THIS NUMBER NOW, IF NECESSARY. ' GET CHEK
READ
SAVE TO A:CONSTANT
CASE DEC='2'
RELEASE ALL
ERASE
RESTORE FROM A:RECEIPT
STORE '..' TO CHEK
@ 2,0 SAY 'THIS IS THE NEXT AVAILABLE RECEIPT NUMBER ' GET NO
@ 3,0 SAY 'CHANGE THIS NUMBER NOW IF NECESSARY ' GET CHEK
READ
SAVE TO A:RECEIPT
CASE DEC='3'
RELEASE ALL
ERASE
RESTORE FROM A:CREDIT
STORE '..' TO CHEK
@ 2,0 SAY 'THIS IS THE NEXT AVAILABLE CREDIT NUMBER ' GET CREDIT:NUM
@ 3,0 SAY ' CHECK AND CHANGE IF NECESSARY' GET CHEK
READ
SAVE TO A:CREDIT
CASE DEC='4'
RELEASE ALL
RESTORE FROM A:GENLED
ERASE
@ 2,0 SAY ' THE NEXT CHEQUE NUMBER IS ' GET CHQNUM
READ
SAVE TO A:GENLED
CASE DEC='R'
RETURN
ENDCASE
ENDDO
INES
* FOR COMPRESSED PRINT
ERASE
RELEASE ALL
DO WHILE T
@ 1,0 SAY '***********************************************************'
@ 2,0 SAY ' INSTALLATION MENU'
@ 3,0 SAY ' PRESS TO DO'
@ 5,0 SAY ' 1 INSTALL COMPANY NAME'
@ 6,0 SAY ' 2 INSTALL PRINTER ROUTINES'
@ 7,0 SAY ' 3 INITIALIZE MEMORY FILES'
@ 8,0 S