home *** CD-ROM | disk | FTP | other *** search
- * ------------[ BLED merge (c) Ken Goosens ]-------------
- * Merge this against D:\172B\RBBSSUB5.BAS to produce RBBSSUB5.BAS
- * D:\172B\RBBSSUB5.BAS: Date 2-10-1990 Size 86814 bytes
- * ------------[ Created 02-28-1990 10:07:09 ]------------
- * REPLACING old line(s) by new
- 20222 CALL RotorsDir (ZFileName$,ZSubDir$(),ZSubDirCount + _
- ((ZUserSecLevel < ZMinSecToView) OR _
- * ------[ first line different ]------
- NOT ZCanDnldFromUp),MarkingTime,"D") ' KG022204
- * REPLACING old line(s) by new
- 20247 ZWasDF = 0
- CALL BreakFileName (ZFileName$,DR$,WasX$,Extension$,ZFalse)
- IF ZAutoDownInProgress THEN _
- * ------[ first line different ]------
- ZUserIn$(ZAnsIndex) = WasX$ + "." + Extension$ : _ ' RH022501
- ZOutTxt$ = "Transferring -- " + _
- ZUserIn$(ZAnsIndex) : _ ' RH022501
- GOSUB 21640 : _
- IF ZFileSysParm > 1 THEN _
- RETURN
- IF INSTR("...WRK.FW .ARC.EXE.COM.OBJ.WKS.LBR.ZIP.PAK.ZOO.LZH.","."+Extension$+".") > 2 OR _
- MID$(Extension$,2,1) = "Q" OR _
- (ZRequireNonASCII AND Extension$ = "BAS") THEN _
- ZWasDF = ZTrue
- * REPLACING old line(s) by new
- 20440 CALL RotorsDir (ZFileName$,ZSubDir$(),ZSubDirCount,ZTrue,"U") ' KG022204
- * REPLACING old line(s) by new
- 20450 IF Extension$ <> Check$ THEN _
- * ------[ first line different ]------
- CALL RotorsDir (WasX$ + "." + Check$,ZSubDir$(),ZSubDirCount,ZTrue,"U") : _ ' KG021802
- IF ZOK THEN _
- GOTO 20452
- GOTO 20447
- * REPLACING old line(s) by new
- 63330 ' $SUBTITLE: 'ReadMacro - sub to read macro'
- ' $PAGE
- '
- ' NAME -- ReadMacro
- '
- ' INPUTS -- PARAMETER MEANING
- '
- ' OUTPUTS -- ZOutTxt$ LINE TO PROCESS IN MACRO
- ' ZMacroActive FLAG WHETHER IN A MACRO
- '
- ' PURPOSE -- Reads in a line from macro file (#6) and processes
- ' macro commands, which are:
- ' *0 - display what follows, no carriage return
- ' *1 - display what follows with carriage return
- ' *B - display block that follows
- ' *F - display File
- ' WT - wait specified # of seconds
- ' >> - append following block to specified file
- ' ST - stack following (with carriage return)
- ' ON - define case
- ' == - case value that applies to following block
- ' M! - execute following macro
- ' M@ - abort macro processing
- ' EY - Echo on (yes)
- ' EN - Echo off (no)
- ' /* - comment line skipped in processing
- ' TK - Turbo key on (if user preference)
- ' << - Read from file into a form
- ' := - Assign value to work variable
- * ------[ first line different ]------
- ' LO - Set the location of a file ' KG022301
- '
- SUB ReadMacro STATIC
- IF ZMacroTemplate$ <> "" THEN _
- GOTO 63392
- IF ZDistantTGet = 2 THEN _
- GOTO 63349
- * REPLACING old line(s) by new
- 63336 GOSUB 63395
- IF NOT ZMacroActive THEN _
- ZMacroEcho = ZTrue : _
- EXIT SUB
- IF LEN(ZOutTxt$) < 3 THEN _
- GOTO 63398
- WasX$ = RIGHT$(ZOutTxt$,LEN(ZOutTxt$)-3)
- IF CompareVar > 0 THEN _
- IF NOT CaseExecute THEN _
- IF LEFT$(ZOutTxt$,3) = ZSmartTextCode$+"==" THEN _
- GOTO 63370 _
- ELSE IF LEFT$(ZOutTxt$,7) = ZSmartTextCode$ + "END ON" THEN _
- CompareVar = 0 : _
- GOTO 63336 _
- ELSE GOTO 63336
- IF LEFT$(ZOutTxt$,1) <> ZSmartTextCode$ THEN _
- GOTO 63398
- CALL CheckInt (MID$(ZOutTxt$,2))
- IF ZErrCode > 0 THEN _
- GOTO 63398
- IF ZTestedIntValue > 0 AND ZTestedIntValue <= ZMaxWorkVar THEN _
- ZOutTxt$ = WasX$ : _ ' Macro command ask
- ZForceKeyboard = ZTrue : _
- ZMacroSave = ZTestedIntValue : _
- ZLinesPrinted = 1 : _
- ZNonStop = (ZPageLength < 1) : _
- EXIT SUB
- * ------[ first line different ]------
- ON (1+INSTR("*0*1*B*FWT>>STON==M!M@EYEN/*TK<<:=LVNVCVLO",MID$(ZOutTxt$,2,2)))\2 GOTO _ ' KG022301
- 63345, _ ' Display with no Carriage Return
- 63347, _ ' Display with Carriage Return
- 63340, _ ' Display Block
- 63348, _ ' Display File
- 63343, _ ' Wait # of seconds
- 63350, _ ' Append to file
- 63355, _ ' Stack
- 63360, _ ' Case
- 63370, _ ' Case Comparison
- 63375, _ ' Macro execute
- 63380, _ ' Macro Abort
- 63383, _ ' Macro Echo on
- 63385, _ ' Macro Echo off
- 63336, _ ' Macro Comment
- 63387, _ ' Turbo Key allowed
- 63390, _ ' Form read
- 63362, _ ' Assign value to work var
- 63363, _ ' LV list verify
- 63364, _ ' NV number verify
- 63364, _ ' CV character verify ' KG022301
- 63367 ' LO assign file location ' KG022301
- GOTO 63398
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 63362 CALL Trim (WasX$) ' KG021803
- CALL CheckInt (WasX$)
- WasX = INSTR(WasX$," ")
- IF WasX > 0 AND ZTestedIntValue > 0 AND ZTestedIntValue <= ZMaxWorkVar THEN _
- ZGSRAra$(ZTestedIntValue) = RIGHT$(WasX$,LEN(WasX$)-WasX) ' KG021803
- GOTO 63336
- * INSERTING new line(s)
- 63367 CALL TRIM (WasX$) ' KG022301
- ZFileLocation$ = WasX$ ' KG022301
- GOTO 63336 ' KG022301
-