home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol155 / form / ltr.cmd next >
Encoding:
Text File  |  1984-04-29  |  3.3 KB  |  95 lines

  1. * FORM/LTR.CMD ----------------- VERSION 1.0 ----------------- OCTOBER 30, 1982
  2. * by Allen V. Cleveland                                  CLEVELAND & ASSOCIATES
  3. *
  4. * This program sets up screen to prompt and get operator selections for
  5. * the printing of a form letter as contained in the LETTERXX.CMD files.
  6. *
  7. * This file is "called" by ADBUG.CMD (Menu) file. This file "calls"
  8. * FORM/PRT.CMD in turn which controls accessing data base and printing.
  9. *
  10. *   Configure dBASE for interaction with operator.
  11. SET TALK OFF
  12. SET SCREEN ON
  13. SET FORMAT TO SCREEN
  14. SET COLON OFF
  15. STORE T TO MOREFORM
  16. *                         * BEGIN MAIN PROCEDURE *
  17. DO WHILE MOREFORM
  18. STORE T TO BAD:ENTRY
  19. STORE "  " TO F1, F2
  20. STORE " " TO R1, R2, RESPONSE
  21. STORE DATE() TO D1
  22. *                          "Paint" the screen.
  23.      ERASE
  24.      @  2, 7 SAY "+---------------------------------------------" + ;
  25.           "---------------------+"
  26.      @  3, 7 SAY "| Atlanta dBASE II Users Group   Membership Da" + ;
  27.          "ta Base"
  28.      @  3,63 SAY D1
  29.      @  3,74 SAY "|"
  30.      @  4, 7 SAY "+---------------------------------------------" + ;
  31.           "---------------------+"
  32.      @  5, 7 SAY "| Program to PRINT FORM LETTER ---- Make the f" + ;
  33.           "ollowing selections: |"
  34.      @  6, 7 SAY "|"
  35.      @  6,74 SAY "|"
  36.      @  7, 7 SAY "|  SELECTOR CODE (Two character code)........." + ;
  37.           ".............."
  38.      @  7,68 GET F1
  39.      @  7,74 SAY "|"
  40.      @  8, 7 SAY "|"
  41.      @  8,74 SAY "|"
  42.      @  9, 7 SAY "|  FORM NUMBER (last two digits of file name shown below)..."
  43.      @  9,68 GET F2
  44.      @  9,74 SAY "|"
  45.      @ 10, 7 SAY "|"
  46.      @ 10,74 SAY "|"
  47.      @ 11, 7 SAY "|  PAUSE after printing ea. form for seperate shts. (Y or N)."
  48.      @ 11,68 GET R1
  49.      @ 11,74 SAY "|"
  50.      @ 12, 7 SAY "|"
  51.      @ 12,74 SAY "|"
  52.      @ 13, 7 SAY "|      Are all selections correct? (Return = yes, N =No)"
  53.      @ 13,66 GET R2
  54.      @ 13,74 SAY "|"
  55.      @ 14, 7 SAY "|                     (Control-C will abort)"
  56.      @ 14,74 SAY "|"
  57.      @ 15, 7 SAY "+---------------------------------------------" + ;
  58.           "---------------------+"
  59.      @ 16,11 SAY "The form files (LETTERXX.CMD) available on this disk are:"
  60. *        Show directory of LETTERXX type files for operator selection.
  61.      DISPLAY FILES LIKE LETTER??.CMD
  62. *             Get selections from operator.
  63.      READ
  64. *                            * BEGIN SUB-PROCEDURE *
  65. *           Check to see if operator wants to re-do all entries.
  66.      DO WHILE  BAD:ENTRY
  67.      IF !(R2) = "N"
  68.           STORE "  "TO F1, F2
  69.           STORE " " TO R1, R2
  70.           @  7,68 GET F1
  71.           @  9,68 GET F2
  72.           @ 11,68 GET R1
  73.           @ 13,66 GET R2
  74.           READ
  75.      ELSE
  76.           STORE F TO BAD:ENTRY
  77.      ENDIF
  78.      ENDDO                   * END SUB-PROCEDURE *
  79. *         Save the selection variables for use by next program
  80.      SAVE TO FORM/LTR
  81. *         "Call" the FORM/PRT.CMD file to control printing.
  82.      DO FORM/PRT
  83. *   See if there are more forms to be printed.
  84. @ 19, 7 SAY "                                                             "
  85. @ 20, 7 SAY "                                                             "
  86. @ 19, 7 SAY "    DO YOU WANT TO PRINT MORE FORMS NOW?"
  87. @ 20, 7 SAY "    ('RETURN = Yes, 'N' = No) --> " GET RESPONSE
  88. READ
  89. IF !(RESPONSE) = "N"
  90.      STORE F TO MOREFORM
  91. ENDIF
  92. ENDDO                  *END MAIN PROCEDURE*
  93. *        Returns to ADBUG.CMD (Menu)
  94. RETURN
  95.