home *** CD-ROM | disk | FTP | other *** search
- *************************** iomenu command files ****************************
- * 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
- SET echo ON
- SET step ON
- 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
- SET step OFF
- SET echo OFF
- 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 #=0
- ENDIF eof
- 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