home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / techs.zip / TECH17.ARC / READ.ME < prev   
Text File  |  1980-01-01  |  2KB  |  65 lines

  1. PROGRAM NAME: Atsay.PRG
  2.  
  3. DESCRIPTION:  Print spooling in dBASE III
  4.  
  5. ISSUE: November, 1985
  6. PAGE:  13
  7.  
  8. SOFTWARE VERSIONS:  dBASE III, Developer's Release
  9.  
  10. FUNCTION: This program provides a way of sending a customized
  11. report, generated with @...SAYs, to a text file for printing at a
  12. later date.
  13.  
  14. FILES NEEDED: Atsay.PRG
  15.  
  16. SETUP INSTRUCTIONS:
  17. To set up, first, place the Atsay program into your procedure
  18. file.  Next, in the calling program SET ALTERNATE TO <filename>
  19. and initialize the following memory variables. 
  20.  
  21.      max_row  := numeric, maximum number of rows per page
  22.      max_col  := numeric, maximum number of columns per row
  23.      prev_row := 0
  24.      prev_col := 0
  25.      
  26. Then, replace each @...SAY and @...GET that you want to capture
  27. to the alternate file in your report program with a "DO Atsay
  28. WITH..." statement.  For example,
  29.  
  30.      @ 5,6 SAY Name PICTURE "!!!!!" 
  31.  
  32. becomes:
  33.      
  34.      DO Atsay WITH 5, 6, Name, "!!!!!"
  35.  
  36. and 
  37.      
  38.      @ 5,6 SAY "Name" GET Name 
  39.  
  40. becomes:
  41.      
  42.      DO Atsay WITH 5,6,"Name",""
  43.      or DO Atsay WITH prev_row,prev_col+1,Name,""
  44.  
  45. Your calling program should look something like the following:
  46.  
  47.      * ---In the report procedure. 
  48.      SET ALTERNATE TO <filename> 
  49.      SET ALTERNATE ON 
  50.      STORE 0 TO prev_row, prev_col 
  51.      max_row = 23 
  52.      max_col = 79
  53.      * ---Report algorithm goes here.
  54.      * ---Syntax used in place of the @...SAY command:
  55.      * ---DO Atsay WITH <row>, <column>, <expression>, <picture>
  56.      * 
  57.      CLOSE ALTERNATE
  58.      RETURN
  59.      * End of report procedure.
  60.  
  61. The text file containing the spooled report can be printed by
  62. using the PC/MS-DOS PRINT.COM, COPY <filename> PRN, TYPE
  63. <filename> > LPT1, or from other word processing software.
  64.  
  65.