Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0305.ZIP
Filename : CLRSCR.PRG

 
Output of file : CLRSCR.PRG contained in archive : NN0305.ZIP
* Program: Clrscr.prg
* Author: Greg Lief
* Version: Clipper Summer '87
*
* Placed into Public Domain.
*
* Syntax: Clrscr(, [,]
*
FUNCTION Clrscr
PARAM clr_type, delay
PRIVATE xx
clr_type = IIF(PCOUNT() = 0, 1, clr_type)
delay = IIF(PCOUNT() < 2, 20, delay)
DO CASE
CASE clr_type = 1 && Window shade pulled down.
FOR xx = 0 TO 24
ClearIt(xx,0,xx,79)
NEXT
CASE clr_type = 2 && Window shade yanked up.
FOR xx = 24 TO 0 step -1
ClearIt(xx,0,xx,79)
NEXT
CASE clr_type = 3 && Barn door to the right.
FOR xx = 0 TO 79
ClearIt(0,xx,24,xx)
NEXT
CASE clr_type = 4 && Barn door to the left.
FOR xx = 79 TO 0 step -1
ClearIt(0,xx,24,xx)
NEXT
CASE clr_type = 5 && Curtains opening.
FOR xx = 40 TO 79
@ 0,(79-xx) CLEAR TO 24,(79-xx)
ClearIt(0,xx,24,xx)
NEXT
CASE clr_type = 6 && Curtains closing.
FOR xx = 79 TO 40 step -1
@ 0,(79-xx) CLEAR TO 24,(79-xx)
ClearIt(0,xx,24,xx)
NEXT
ENDCASE
RETURN ('')


* Function: ClearIt()
*
FUNCTION ClearIt
PARAM t,l,b,r
PRIVATE delayloop
@ t,l CLEAR TO b,r
FOR delayloop = 1 TO delay
NEXT
RETURN ('')

* EOF: ClearScr.prg


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0305.ZIP
Filename : CLRSCR.PRG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/