home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug061.arc / MEMTIP.DOC < prev    next >
Text File  |  1979-12-31  |  3KB  |  86 lines

  1.         dBase II Screen and Print Formatting
  2.                   Programming Tip
  3.  
  4.                 by David A. Basskin,
  5.                   Toronto, Ontario
  6.  
  7. INTRODUCTION
  8.  
  9.      Iµá you'vσ go⌠ aε OSBORN┼ ▒ anΣ aε EPSO╬ MX-80¼ ì
  10. yo⌡á ma∙ finΣ thesσ tw∩ file≤ oµá somσá use«á Rathe≥ ì
  11. thaεá goinτá t∩ thσ troublσ oµá typinτá ou⌠á contro∞ ì
  12. code≤á t∩á forma⌠ thσ screeε witΦ underlineΣá and/o≥ ì
  13. half-intensit∙á character≤á ever∙ timσ yo⌡ se⌠ u≡á ß ì
  14. screeεá o≥ pagσ forma⌠ file¼á yo⌡ caε usσ thσá macr∩ ì
  15. substitutioεá functioεá oµ dBasσ t∩ takσá ove≥á thi≤ ì
  16. tiresomσ job«á M∙ suggestioε i≤ t∩ kee≡ theφ oεá thσ ì
  17. samσ disδ a≤ DBASE.CO═ anΣ RESTOR┼ theφ t∩ memor∙ a⌠ ì
  18. your convenience.
  19.  
  20. SCREEN.MEM
  21.  
  22.      Jus⌠ RESTOR┼ thi≤ filσ oµ memor∙ variable≤á anΣ ì
  23. usσá thσá followinτ command≤ iε you≥á screeεá forma⌠ ì
  24. files:
  25.  
  26.      &BL - begins underlining
  27.      &EL - ends underlining
  28.      &BH - begins half-intensity
  29.      &EH - ends half-intensity
  30.  
  31. notσá tha⌠á thσ underlininτ functioε underline≤á thσ ì
  32. wholσá fielΣá t∩ whicΦ i⌠ applies¼á whethe≥á o≥á no⌠ ì
  33. filled. To underline one field, you could type:
  34.  
  35.      . DISPLAY &BL,FIELD1,&EL,FIELD2 ...
  36.  
  37. and so on.
  38.  
  39. PRINT.MEM
  40.  
  41.      Thi≤á filσá i≤ useΣ iε thσ samσ wa∙ a≤á SCREEN« ì
  42. Therσá i≤ n∩ neeΣ t∩ releasσ al∞ thσ variable≤á froφ ì
  43. thσá former╗á SCREE╬á anΣ PRIN╘ sharσá n∩á variable≤ ì
  44. name≤ anΣ s∩ botΦ caε bσ useΣ together« Thσ command≤ ì
  45. will change the setup of an Epson MX-80 as follows:
  46.  
  47.      &BC - begin compressed print
  48.      &EC - end compressed print
  49.      &BD - begin double-strike
  50.      &ED - end double-strike
  51.      &BE - begin emphasized print
  52.      &EE - end emphasized print
  53.      &BI - begin italic print
  54.      &EI - end italic print
  55.      &BL - begin underliningè     &EL - end underlining
  56.      &BS - begin superscript
  57.      &ES - end superscript
  58.      &BW - begin double width
  59.      &EW - end double width
  60.      &RESET - clear all settings to power-on
  61.            defaults and move paper to top of form.
  62.  
  63.      Notσá tha⌠ thesσ code≤ won'⌠ worδ iε .FR═ file≤ ì
  64. generateΣá b∙ REPORT╗á the∙ mus⌠ appea≥ iεá .FM╘á o≥ ì
  65. .CMD files.
  66.  
  67. MODIFICATIONS
  68.  
  69.      Iµá you'rσ usinτ ß differen⌠ printer¼á o≥ dBasσ ì
  70. oε ß differen⌠ computer¼á thσ principlσ behinΣá thi≤ ì
  71. programminτá ti≡á caεá bσ easil∙á adapted«á Iµá you≥ ì
  72. termina∞ support≤ reversσ vide∩ o≥ ß blinkinτ curso≥ ì
  73. (whicΦá thσá Osbornσ doe≤ not)¼á thosσá code≤á coulΣ ì
  74. easil∙ bσ addeΣ t∩ SCREEN« Similarly¼ ß proportiona∞ ì
  75. spacing toggle could be added to PRINT.
  76.  
  77.      Send any questions or comments to:
  78.  
  79.           David A. Basskin
  80.           5 Douville Ct.,
  81.           Toronto, Ont.,
  82.           M5A 4E7
  83.  
  84.           Phone: 368-1085
  85.  
  86. ====================================================