Category : BASIC Source Code
Archive   : PBC30B.ZIP
Filename : STRSQU2.BAS

 
Output of file : STRSQU2.BAS contained in archive : PBC30B.ZIP
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+

SUB StrSqu2 (St$, Result$)
s$ = St$
x$ = " e tth as heint erd re s oorann i, r outeonro wy too leisndat"
x$ = x$ + "es c--edarentise fngitf st bme. mveofalhanent ras draria dell p"
x$ = x$ + "coetl hig ilutlaeabeusmapeam ewi llo n htromowh elchpr: ecaysiio"
x$ = x$ + "uryo yaclica :foeefidiThrsic umono S..sskeu ot Icegerrtactly== T"
code% = 128
DO
a$ = LEFT$(x$, 2)
DO
i% = INSTR(s$, a$)
IF i% THEN s$ = LEFT$(s$, i% - 1) + CHR$(code%) + MID$(s$, i% + 2)
LOOP WHILE i%
x$ = MID$(x$, 3)
code% = code% + 1
LOOP WHILE LEN(x$)
IF LEN(Result$) THEN MID$(Result$, 1) = s$
END SUB

SUB StrSquLen2 (St$, ResultLen%)
s$ = St$
x$ = " e tth as heint erd re s oorann i, r outeonro wy too leisndat"
x$ = x$ + "es c--edarentise fngitf st bme. mveofalhanent ras draria dell p"
x$ = x$ + "coetl hig ilutlaeabeusmapeam ewi llo n htromowh elchpr: ecaysiio"
x$ = x$ + "uryo yaclica :foeefidiThrsic umono S..sskeu ot Icegerrtactly== T"
code% = 128
DO
a$ = LEFT$(x$, 2)
DO
i% = INSTR(s$, a$)
IF i% THEN s$ = LEFT$(s$, i% - 1) + CHR$(code%) + MID$(s$, i% + 2)
LOOP WHILE i%
x$ = MID$(x$, 3)
code% = code% + 1
LOOP WHILE LEN(x$)
ResultLen% = LEN(s$)
END SUB


  3 Responses to “Category : BASIC Source Code
Archive   : PBC30B.ZIP
Filename : STRSQU2.BAS

  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/