Category : BASIC Source Code
Archive   : PIA88SRC.ZIP
Filename : GETSTRN.BAS

 
Output of file : GETSTRN.BAS contained in archive : PIA88SRC.ZIP
DEF FNGETSTRN$(MAXLEN)
STATIC RESPONSE$,I2
COLOR K(1,2),K(1,1),1
RESPONSE$=STRING$(MAXLEN,32)
I2=0
20 C$=INKEY$
IF C$="" THEN 20
IF ASC(C$)=13 THEN
FNGETSTRN$=RESPONSE$
PRINT CHR$(13);
IF I2=0 THEN FNGETSTRN$=""
EXIT DEF
END IF
IF ASC(C$)=8 THEN
IF I2=0 THEN
BEEP
GOTO 20
END IF
LOCATE ,POS(0)-1
PRINT CHR$(32);
LOCATE ,POS(0)-1
MID$(RESPONSE$,I2,1)=CHR$(32)
I2=I2-1
GOTO 20
END IF
IF ASC(C$)<32 OR ASC(C$)>127 THEN
BEEP
GOTO 20
END IF
IF I2>=MAXLEN THEN
BEEP
GOTO 20
END IF
PRINT C$;
I2=I2+1
MID$(RESPONSE$,I2,1)=C$
GOTO 20
END DEF



  3 Responses to “Category : BASIC Source Code
Archive   : PIA88SRC.ZIP
Filename : GETSTRN.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/