home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / ACDISP.ZIP / ACREPORT.TXT < prev    next >
Encoding:
Text File  |  1995-02-26  |  7.3 KB  |  176 lines

  1. *******************************************************************************
  2. ***:***********************************************************************:***
  3. ***:                                                                       :***
  4. ***:                    Program: ACDISP.EXE or ACDISP.FXP                  :***
  5. ***:                    Version: 2.6a                                      :***
  6. ***:                                                                       :***
  7. ***:                     Author: George Allen                              :***
  8. ***:                      Phone: (403) 450-4107                            :***
  9. ***:              CompuServe ID: 71533,42                                  :***
  10. ***:              Copyright (c) 1995, George Allen                         :***
  11. ***:                                                                       :***
  12. ***:       Programming language: Microsoft FoxPro 2.6a Dos                 :***
  13. ***:              Last modified: 02/24/95                                  :***
  14. ***:            Windows defined: boxx, disps, look50, acpass, rvwin        :***
  15. ***:                                                                       :***
  16. ***:***********************************************************************:***
  17. *******************************************************************************
  18.  
  19. Use this program file to display reports created by FoxPro report writer
  20. or any text file. The displayed report will fill the screen except for the
  21. first two lines where you can put your own heading. You can also leave these 
  22. lines blank if you setup your heading before running ACDISP. This program is
  23. free. Go to page 4 for information on how to get source codes. 
  24.  
  25. Syntax:
  26.     From the Command window or within a program:
  27.  
  28.        DO acdisp [WITH <file> [,<expL1> [,<expC1> [,<expC2> ;
  29.                [,<expL2> [,<expL3> [,<expL4> ]]]]]]]
  30.     
  31.     Example
  32.        DO acdisp WITH "REPORT.TXT"
  33.                  or
  34.        =acdisp("REPORT.TXT")
  35.         
  36.      If the FoxPro 2.5 runtime files are in the current directory or on the
  37.      path you can run ACDISP.EXE form the dos prompt as follows:
  38.         
  39.                 ACDISP REPORT.TXT
  40.         (or FOXR ACDISP REPORT.TXT if you only have ACDISP.FXP)
  41.  
  42. <file>
  43.     The name of the text file to be displayed.
  44.     The default file is "ACREPORT."+_USER. If the memory variable "_USER"
  45.     does not exist the default file will be "ACREPORT.TXT"
  46.  
  47. <expL1>
  48.     A logic .T. here will force ACDISP to create its tempory working file
  49.     (used to display the report) as a memory variable rather than a cursor.
  50.     A cursor will be created if memory is limited.
  51.  
  52. <expC1>
  53.     First line of the heading used when viewer is active.
  54.     Leave empty or .F. for no heading.
  55.  
  56. <expC2>
  57.     Second line of the heading used when viewer is active.
  58.     Leave empty or .F. for no heading.
  59.         
  60. <expL2>
  61.     A logic .T. here will cause ACDISP to bypass its viewer and display
  62.     the file using standard FoxPro command MODIFY FILE <file> NOEDIT 
  63.     WINDOW <window title>       
  64.  
  65. <expL3>
  66.     A logic .T. here will cause ACDISP to NOT use extended display mode.
  67.     Reports will be displayed using normal 25 line display mode. 
  68.  
  69. <expL4>
  70.     A logic .T. here will cause the arrow keys to behave just like the
  71.     Ctrl+Arrow keys. Up/Down move a screen at a time rather than just a
  72.     line. Left/Right move across 5 characters rather than one.
  73.  
  74.  
  75.                                                                       Page 2
  76.  
  77. ACDISP gives you the flexibility to display reports created by different 
  78. users. If no report is specified and the memory variable "_USER" has been 
  79. defined ACDISP will look for a file called "ACREPORT."+_USER. You may 
  80. choose to specify your own user specific name by entering the command as 
  81. follows:
  82.                 =acdisp("REPORT."+_USER)
  83.  
  84. If you do not specify a report to display and the memory variable "_USER" 
  85. does not exist ACDISP will look for a file called "ACREPORT.TXT" (this file).
  86.  
  87. Once the report has been displayed you can use the hot keys listed at the
  88. bottom of the screen to move through your report.
  89.  
  90. The up and down arrow keys will move between screens if the page length 
  91. exceeds the length displayed on screen.
  92. The left and right arrow keys will scroll reports from side to side
  93. if the report is wider than the screen.
  94. Use the PgUp and PgDn keys to move between pages in the report.
  95. To move to a specific page in the report press "G" and enter the page
  96. number.
  97.  
  98. Press Escape to terminate report display. ACDISP will next allow you
  99. to print this report. You may print all pages or a range of pages.
  100.  
  101. ACDISP uses the standard page end character CHR(12) to determine the
  102. end of a page.  
  103.  
  104.  
  105. ╓─────────────────────────────────╖                                   Page 3
  106. ║    Memory or write to Drive     ║
  107. ╙─────────────────────────────────╜
  108. ACDISP creates a cursor (a tempory DBF) that stores its temporary display
  109. file. If you would prefer ACDISP store its temporary file as a memory 
  110. variable then add a second parameter ".T." to the command line as follows:
  111.  
  112.                 DO acdisp WITH "REPORT.TXT", .T.
  113.                 
  114. Using a cursor is faster in most memory situations. If you choose to use
  115. the memory variable option and your report is too large to fit in memory
  116. then ACDISP will create a cursor instead.
  117.  
  118.  
  119. ╓─────────────────────────────────╖
  120. ║   Page Limit - Display Report   ║
  121. ╙─────────────────────────────────╜
  122. The size of the report that can be displayed will depend on your available
  123. disk space and available memory (RAM). Very long reports can take awhile
  124. to generate screen display. If there is not enough free resources to display
  125. a large file then ACDISP will display the report using the standard FoxPro 
  126. command MODIFY FILE <file> NOEDIT WINDOW <window title>.
  127.  
  128.  
  129. ╓─────────────────────────────────╖
  130. ║      Printer Driver Setup       ║
  131. ╙─────────────────────────────────╜
  132. ACDISP will display any text file and can be used anywhere you normally
  133. use the command "MODIFY FILE <file name> NOMODIFY". See ACREPORT.TXT for 
  134. instructions. As with the FoxPro command "MODI FILE" you must disable any
  135. Printer Driver Setup before generating the text file to be displayed. Your
  136. codes may look something like this:
  137.  
  138.         _PDSAVE = _PDSETUP
  139.         IF !EMPTY(_PDSETUP)
  140.                 SET PDSETUP TO
  141.         ENDIF
  142.         REPORT FORM <report file> TO FILE <report name>
  143.         DO acdisp WITH <report name>
  144.         IF _pdsetup # _pdsave
  145.                 set pdsetup to _pdsave
  146.         ENDIF
  147.  
  148.  
  149. ╓─────────────────────────────────╖
  150. ║           IMPORTANT             ║
  151. ╙─────────────────────────────────╜
  152. If a character variable called _PDSAVE exists ACDISP will reset PDSETUP to
  153. _PDSAVE when it terminates.
  154.  
  155.  
  156.  
  157. ╓─────────────────────────────────╖                                   Page 4
  158. ║          Registration           ║
  159. ╙─────────────────────────────────╜
  160. Please register your copy of ACDISP.
  161. ACDISP.FXP is free. You only need to register if you find this program useful
  162. and would like the full source codes.
  163.  
  164. Send registration fee of US$20 or CAN$25 to:
  165.  
  166.        George Allen
  167.           G. Allen Ent.
  168.           67 Grand Meadow Cres.
  169.           Edmonton, AB. Canada T6L 1A3
  170.  
  171.           Tel: (403) 450-4107
  172.           Fax: (403) 450-3266
  173.           CompuServe 71533,42
  174.  
  175.  
  176.