home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol155 / letter00.cmd < prev    next >
Encoding:
Text File  |  1985-02-10  |  3.3 KB  |  66 lines

  1. * LETTER00.CMD------------------ VERSION 1.0 ------------------ OCTOBER 30, 1982
  2. * by  Allen Cleveland                                     CLEVELAND & ASSOCIATES
  3. *
  4. *       FORM LETTER NUMBER 1 (written for demonstration purposes)
  5. *
  6. ?? DATELINE
  7. ?
  8. ?
  9. ? NAMELINE
  10. ? ADDLINE:1
  11. ? ADDLINE:2
  12. ? CITYLINE
  13. ?
  14. ?
  15. ? 'Dear '+ NAME:1 + ':'
  16. ?
  17. ? 'This is a example of a "form " letter which is typed only once in the form'
  18. ? 'of a dBASE II command file with the file name of LETTERXX.CMD, where "XX"'
  19. ? 'is a two character code identifying that particular "form". You MUST have'
  20. ? 'a file name of "LETTERXX" because the command file which "calls" this form'
  21. ? 'letter file looks ONLY for a file with the first six characters of the '
  22. ? 'name as "LETTER". The file "type" MUST be "CMD" so that control can be'
  23. ? 'transfered to the file for the actual printing of your form.'
  24. ?
  25. ? NAME:1 + ', you will also note that each line which you wish to be printed'
  26. ? 'as it is typed, MUST be proceeded by a "?", a space and the quote mark.'
  27. ? 'The last character to be typed in any line MUST be followed by another'
  28. ? 'quote mark. The single quote "delimeters" are necessary to indicate'
  29. ? 'to dBASE exactly what is to printed as a "literial". Therefore you will'
  30. ? 'note that any other use of the single quote is not allowed...( Use of'
  31. ? 'single quotes as the string delimeter allows the use of regular "double"'
  32. ? 'quotation marks to be embedded in the text. The "square" brackets may'
  33. ? 'be used instead of the single or double quotes..however in any given line'
  34. ? 'you must be consistant as to what is the delimeter.)'
  35.  
  36. ? 'As illustrated in the date and address at the beginning and the use of'
  37. ? 'a first name in the paragraph above, you may also have any previously'
  38. ? 'defined "variable" also printed in the body of the "form".'
  39. ?
  40. ? 'When including "variables" in the body of such forms take care to make'
  41. ? 'sure that you know their "type" and the number of spaces required for'
  42. ? 'their printing. For instance should you want to control the number of'
  43. ? 'columns required to print out a number (previously defined as a "numeric"'
  44. ? 'variable), you can change its type to a "character" variable and define'
  45. ? 'the number of columns required for printing by use of the "STR" function.'
  46. ?
  47. ? 'You must also be aware of the length of you lines and how they relate to'
  48. ? 'the paper size and the margins as set up on your printer. The FORM/PRT.CMD'
  49. ? 'file prompts for a left margin set at col. # 5...ONLY because it is assumed'
  50. ? 'that the form lines will be be approximately 75 characters (max.) in length'
  51. ? 'and hence the printed "text" will be centered on a 8 1/2" wide sheet (85'
  52. ? 'characters total at 10 pitch such as this example).'
  53. ?
  54. ?
  55. ? 'Sincerely,'
  56. ?
  57. ?
  58. ? 'J. Rufus Flywheel, President'
  59. ? 'FORM LETTERS UNLIMITED INC.'
  60. RETURN
  61. * NOTE: DO NOT DO AN "EJECT" HERE AS FORM/PRT.CMD ALWAYS ISSUES
  62. * AN "EJECT" COMMAND AS SOON AS CONTROL IS RETURNED TO IT.
  63. * YOU MUST HOWEVER MAKE THE LAST COMMAND OF THIS FILE A "RETURN"
  64. * SO THAT CONTROL WILL BE TRANSFERED BACK TO  FORM/PRT.CMD FOR
  65. * CONTINUATION OF THE PRINTING OF THE NEXT LETTER(S).
  66.