home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
pw_menu.zip
/
SETUP.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-05-11
|
4KB
|
183 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
String TSTRING001(22)
String TSTRING002(22)
String TSTRING003(22)
String TSTRING004(22)
String TSTRING005(22)
String TSTRING006(22)
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
;------------------------------------------------------------------------------
STRING007 = PPEPath() + "\MENU.IDX"
If (Exist(STRING007)) Goto LABEL001
Newline
InputStr "The configuration file does not exist. Create it", STRING008, 14, 1, "YN", 8 + 128 + 256 + 16384
If (STRING008 == YesChar()) Then
FCreate 1, STRING007, 2, 0
FWrite 1, Left("Menuing configuration file version 1.0", 157), 157
FClose 1
Else
PrintLn "@X0EAborting operation......."
Goto LABEL004
Endif
:LABEL001
FOpen 1, STRING007, 2, 0
FSeek 1, 157, 1
INTEGER001 = 0
For INTEGER001 = 1 To 22
FRead 1, TSTRING001(INTEGER001), 15
FRead 1, TSTRING002(INTEGER001), 60
FRead 1, TSTRING003(INTEGER001), 60
FRead 1, TSTRING004(INTEGER001), 1
FRead 1, TSTRING005(INTEGER001), 20
FRead 1, TSTRING006(INTEGER001), 1
Next
:LABEL002
Cls
FClose 1
INTEGER001 = 0
For INTEGER001 = 1 To 22
PrintLn "@X0E", String(INTEGER001), ". - ", "@X0F", RTrim(TSTRING001(INTEGER001), " "), " @X03", RTrim(TSTRING003(INTEGER001), " "), "@X07"
Next
STRING008 = ""
InputStr "Enter the number you wish to modify (Q = quit)", STRING008, 14, 2, "0123456789Q", 8 + 2
If (STRING008 == "Q") Goto LABEL004
If (STRING008 == "") Goto LABEL002
:LABEL003
INTEGER002 = S2I(STRING008, 10)
STRING008 = ""
STRING009 = TSTRING001(INTEGER002)
STRING010 = TSTRING002(INTEGER002)
STRING011 = TSTRING003(INTEGER002)
STRING012 = TSTRING004(INTEGER002)
STRING013 = TSTRING005(INTEGER002)
STRING014 = TSTRING006(INTEGER002)
Cls
InputStr "Enter new name", STRING009, 14, 15, Mask_Ascii(), 2 + 128 + 256
PrintLn "@X0EEnter new path/filename up to 60 characters:"
InputStr "", STRING010, 14, 60, Mask_File(), 2 + 8
Newline
PrintLn "@X0EEnter the new description up to 60 characters:"
InputStr "", STRING011, 14, 60, Mask_Ascii(), 2 + 256
InputYN "Requires Doorway", STRING012, 14
Newline
PrintLn "@X0EEnter new command line switches (if any) up to 40 characters:"
InputStr "", STRING013, 14, 40, Mask_Ascii(), 2 + 8 + 256
InputYN "Is this a display-only file", STRING014, 14
Cls
PrintLn "@X0EYou have entered the following information:"
Newline
PrintLn " @X0BName: @X0F", STRING009
PrintLn " @X0BPath/filename: @X0F", STRING010
PrintLn " @X0BDescription: @X0F", STRING011
PrintLn " @X0BRequires Doorway: @X0F", STRING012
PrintLn " @X0BParameters: @X0F", STRING013
PrintLn " @X0BDisplay only: @X0F", STRING014
Newline
InputYN "Is this correct", STRING008, 14
If (STRING008 == YesChar()) Then
FOpen 1, STRING007, 1, 0
FSeek 1, INTEGER002 * 157, 1
FWrite 1, Left(STRING009, 15), 15
FWrite 1, Left(STRING010, 60), 60
FWrite 1, Left(STRING011, 60), 60
FWrite 1, Left(STRING012, 1), 1
FWrite 1, Left(STRING013, 20), 20
FWrite 1, Left(STRING014, 1), 1
FClose 1
Else
Goto LABEL003
Endif
STRING008 = YesChar()
Newline
InputYN "Add/Modify another", STRING008, 14
If (STRING008 == YesChar()) Goto LABEL001
:LABEL004
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 3 Cls
; 14 Goto
; 17 Let
; 12 PrintLn
; 8 If
; 1 FCreate
; 2 FOpen
; 3 FClose
; 6 InputStr
; 4 InputYN
; 6 Newline
; 2 FSeek
; 6 FRead
; 7 FWrite
;
;
; ■ Functions used :
;
; 1 *
; 13 +
; 5 ==
; 2 <
; 2 <=
; 4 >=
; 5 !
; 4 &&
; 2 ||
; 7 Left()
; 2 RTrim()
; 4 YesChar()
; 1 String()
; 1 Mask_File()
; 3 Mask_Ascii()
; 1 PPEPath()
; 1 Exist()
; 1 S2I()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 2 For/Next
; 0 While/EndWhile
; 2 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------