home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
DBASEACC.ARC
/
IOMENU.PRG
< prev
next >
Wrap
Text File
|
1979-12-31
|
3KB
|
75 lines
*************************** IOMENU COMMAND FILE ****************************
* Selects the appropriate action to be taken with insertion orders
* (instructions from our ad agency to magazine publishers).
*****************************************************************************
SET INTE OFF
STORE T TO INSERTING
DO WHILE INSERTING
ERASE
@ 7,20 SAY ' 1> ENTER INSERTION ORDERS '
@ 9,20 SAY ' 2> EDIT INSERTION ORDERS '
@ 11,20 SAY " 3> REVIEW/PRINT INSERTION ORDERS"
@ 12,20 SAY ' BY CLIENT & MAGAZINE'
@ 14,20 SAY ' <RETURN>'
WAIT TO Action
IF Action = '1'
DO IOPOST
ELSE
IF Action = '2'
STORE "Y" TO Changing
DO WHILE !(Changing)='Y'
USE Inserts
IF EOF
? 'There are no entries in the INSERTION ORDER file.'
STORE "N" TO Changing
ELSE
STORE IO:Nmbr TO First
GO BOTTOM
STORE IO:Nmbr TO Last
ERASE
@ 3,15 SAY 'EDITING INSERTION ORDERS '+First+'thru '+Last
@ 5,15 SAY '^W TO SAVE, ^Q TO CANCEL changes you make.'
@ 6,15 SAY '^R for PREVIOUS, ^C for NEXT record if MORE = T'
?
?
ACCEPT 'Which ORDER NUMBER do you want to EDIT?' TO Order
USE Inserts INDEX Inserts
FIND &Order
IF #=0
?
?
? 'That insertion order is not in the file.'
? 'Do you want to continue (Y or N)?'
WAIT TO Changing
ELSE
STORE STR(#,5) TO Number
Edit &Number
REPLACE Client WITH !(Client), Ad WITH !(Ad),Magazine WITH;
!(Magazine)
?
? 'Do you want to edit any other insertion orders (Y or N)?'
WAIT TO Changing
ENDIF
ENDIF
ENDDO Changing
RELEASE ALL
ELSE
IF Action ='3'
DO IOReview
ELSE
RELEASE ALL
RETURN
ENDIF 3
ENDIF 2
ENDIF 1
STORE T TO Inserting
ENDDO Inserting
RETURN
? 'There are no entries in the INSERTION ORDER file.'
STORE "N" TO Changing
ELSE
STORE IO:Nmbr TO First
GO BOTTOM
STO