home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: MEMOPRT.PRG ⌐ª
- *⌐ª Function: ┤≥╙í╩²╛▌┐Γ╡─▒╕╫ó╫╓╢╬║»╩²╡─╖╢└² ⌐ª
- *⌐ª Usage: MEMOPRT(<memofld>,<col>,<width>) ⌐ª
- *⌐ª <memofld> ▒╕╫ó╫╓╢╬├√│╞ ⌐ª
- *⌐ª <col> ┤≥╙í╞≡╩╝┴╨ ⌐ª
- *⌐ª <width> ┤≥╙í╨╨┐φ ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- FUNCTION memoprt
- PARAMETERS memofld,col,width
- PRIVATE check,memofld,col,width
-
- * ┤ó┤µ╘¡└┤╡─ MEMOWIDTH, PRINTER ╡─╫┤╠¼
- cur_width = SET("MEMOWIDTH")
- cur_print = SET("PRINTER") = "OFF"
- Newwidth = MIN(_rmargin-_lmargin,width)
- SET MEMOWIDTH TO Newwidth
-
- DEFINE BOX FROM col-1 TO (col+Newwidth+1) ;
- HEIGHT MEMLINES((memofld))+2 "."
-
- DO WHILE !PRINTSTATUS()
- WAIT " ┤≥╙í╗·▓╗╩╟ ON-LINE ╫┤╠¼, ╟δ╝∞▓Θ▓ó░┤╚╬╥╗╝ⁿ╝╠╨°╗≥░┤ [ESC] ╝ⁿ═╦│÷";
- WINDOW NOWAIT
- IF LASTKEY()=27
- SET MEMOWIDTH TO cur_width
- IF cur_print
- SET PRINTER OFF
- ENDIF
- RETURN
- ENDIF
- ENDDO
- SET PRINTER ON
-
- STORE .T. TO _BOX
- * ┤≥╙í DEFINE BOX ╔Φ╢¿╡─▒▀┐≥, ╧╡═│─┌┤µ▒Σ┴┐ _BOX ╨Φ╔Φ╬¬ .T.
- ?
- ?? (memofld) AT col
- ?
- ?
- STORE .F. TO _BOX
- SET MEMOWIDTH TO cur_width
- IF cur_print
- SET PRINTER OFF
- ENDIF
- RETURN