Category : BASIC Source Code
Archive   : QBSUBS10.ZIP
Filename : PARSEDMO.ASC
' by David L. Poskie (608) 274-9560
' 7118 Raymond Rd. Madison, WI 53719
' Please run any suggestions, corrections, additions, or changes by me.
' I can be messaged on all the major Madison, WI RBBS's.
' This variable is adjustable
NumMax = 10 ' Maximum # of commands allowed
DIM Cmd$(NumMax)
GOTO Start
Rem $Include: 'OMNI.SUB'
Rem $Include: 'PARSE.SUB'
Start:
COLOR 14 , 3 , 8
CLS
LOCATE 10,1
GOSUB Parse
' If there is no command
IF Num = 0 _
THEN SOUND 3333,.3 : _
Text$ = "Syntax: PARSEDMO Cmd-1 Cmd-2 . . Cmd-10" : _
GOSUB Center : _
PRINT : PRINT : _
Text$ = "Commands must be separated by one or more spaces": _
GOSUB Center : _
GOTO ParsExit
' If one or more commands exist
Text$ = "The command line contained " + STR$(Num) + " command"
IF Num > 1 _
THEN Text$ = Text$ + "s"
Text$ = Text$ + "."
CLS
LOCATE 2 , 1
GOSUB Center
FOR Temp = 1 TO Num
Text$ = "Command #" + STR$(Temp) + " is " + Cmd$(Temp)
GOSUB Center
IF Temp < Num _
THEN PRINT
NEXT Temp
ParsExit:
SYSTEM
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/