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

 
Output of file : SPREAD.PRG contained in archive : NN0305.ZIP
* Program: Spread.prg
* Author: Greg Lief
* Version: Clipper Summer '87
*
* Copyright (c) 1988-89 Greg Lief.
* Placed into Public Domain.
*
* Syntax: Spread(, , [, ])
*

FUNCTION Spread
PARAM msg, row, delay, mid
* Initialize delay and midpoint if parameters not passed.
delay = IF(PCOUNT() < 3, 8, delay)
mid = IF(PCOUNT() < 4, 40, mid)
PRIVATE mlen, mloop, msg2, xx
* initialize memvar to hold temporary version of string
msg2 = ''
mlen = LEN(msg)
FOR mloop = 1 TO INT(mlen/2)
* Add characters to temp string from front and
* back of actual string.
msg2 = SUBSTR(msg, 1, mloop) + ;
SUBSTR(msg, mlen + 1 - mloop, mloop)
@ row, mid-mloop SAY msg2
FOR xx = 1 TO delay
NEXT
NEXT
* Must redraw string if length was not an even number.
IF mlen%2 = 1
@ row, mid-mloop SAY msg
ENDIF
RETURN('')
* EOF: Spread.prg


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0305.ZIP
Filename : SPREAD.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/