home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- PROCEDURE End_way
-
- PARAMETERS line_no, the_cent, a_row, a_col, a_row2, a_col2, tagline
-
- IF PCOUNT() = 4
- a_row2 = a_row + 2
- a_col2 = a_col + 60
- tagline= .T.
- ELSEIF PCOUNT() = 6
- tagline = .T.
- ENDIF
-
- print_way = IF((TYPE("print_way") != "N"), 1, print_way)
-
- DO CASE
- CASE print_way = 1
- IF tagline
- @ 24,00 SAY "End of Report. Press Any key to RETURN "
- INKEY(0)
- ENDIF
- CASE print_way = 2
- SET CONSOLE OFF
- SET PRINT ON
- IF the_cent > 0
- skipping = breakpoint
- DO WHILE skipping <= 55
- ?
- skipping = skipping + 1
- ENDDO
-
- IF tagline
- ? Mess_cent(IF((LASTKEY() = 27), "Partial Report Printed", "End of Report"), the_cent)
- ELSE
- ?
- ENDIF
-
- EJECT
- IF screject
- EJECT
- ENDIF
-
- ENDIF
- SET CONSOLE ON
- SET PRINT OFF
- Clear_area()
- Pushscreen(a_row, a_col - 5, a_row + 2, a_col + 60,.T.,.T.)
- @ a_row + 1, a_col SAY "Requested Information has been Printed. Any Key to RETURN"
- INKEY(0)
- Popscreen(a_row, a_col - 5, a_row + 2, a_col + 60)
- OTHERWISE
- IF TYPE("the_cent") = "U"
- the_cent = 0
- ENDIF
- IF TYPE("print_file") = "U"
- print_file = ""
- ENDIF
- IF the_cent > 0
- ?
- ?
- IF tagline
- ? Mess_cent("End of Report", the_cent)
- ELSE
- ?
- ENDIF
- ENDIF
-
- SET ALTERNATE OFF
- SET ALTERNATE TO
- CLOSE ALTERNATE
- SET CONSOLE ON
- IF !EMPTY(print_file)
- Pushscreen(a_row, a_col, a_row + 2, a_col + 60,.T.,.T.)
- say_what = TRIM(print_file) + " is now on the disk. Any key to RETURN"
- @ a_row + 1, Center(say_what, 30) + a_col SAY say_what
- INKEY(0)
- Popscreen(a_row, a_col, a_row + 2, a_col + 60)
- ENDIF
- ENDCASE
- Popscreen(a_row, a_col, a_row2, a_col2)
-
- * End of File
-
-