home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
DMSPPE1B.ZIP
/
MENUS.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1995-01-11
|
2KB
|
138 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
;------------------------------------------------------------------------------
String STRING001
String STRING002
String STRING003
Int INT001
Int INT002
;------------------------------------------------------------------------------
INT001 = CurColor()
INT002 = 0
STRING001 = ""
STRING002 = ""
STRING003 = Chr(13)
ClrEol
PrintLn "(@X0C@MINLEFT@@X0E min. left) @X0C[ @INCONF@]@X0E"
ClrEol
Print " @X0A@OPTEXT@ Menu Command @X03(H = Help) @X0A-> "
Color 3
INT002 = 0
:LABEL001
If (INT002 == 13) Goto LABEL002
STRING001 = ""
While (STRING001 == "") Do
STRING001 = Inkey()
EndWhile
INT002 = Asc(Upper(STRING001))
If (Len(STRING001) > 1) Then
INT002 = 0
ElseIf (INT002 == 9) Then
INT002 = 0
ElseIf ((INT002 == 13) && (Len(STRING002) == 0)) Then
INT002 = 0
ElseIf ((INT002 == 8) && (Len(STRING002) == 0)) Then
INT002 = 0
ElseIf ((INT002 == 32) && (Len(STRING002) == 0)) Then
INT002 = 0
ElseIf (INT002 == 8) Then
Backup 1
Print Space(1)
Backup 1
STRING002 = Left(STRING002, Len(STRING002) - 1)
INT002 = 0
ElseIf ((INT002 == 27) && (Len(STRING002) > 0)) Then
Backup Len(STRING002)
Print Space(Len(STRING002))
Backup Len(STRING002)
STRING002 = ""
INT002 = 0
ElseIf (((INT002 < 32) || (INT002 > 126)) && !(INT002 == 13)) Then
INT002 = 0
Else
Print STRING001
STRING002 = STRING002 + STRING001
Endif
Goto LABEL001
:LABEL002
Color INT001
Backup GetX() - 1
ClrEol
If (Upper(STRING002) == "H" + STRING003) Then
STRING002 = "?" + STRING003
Endif
KbdStuff STRING002
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 3 ClrEol
; 2 Color
; 21 Goto
; 21 Let
; 4 Print
; 1 PrintLn
; 11 If
; 1 KbdStuff
; 5 Backup
;
;
; ■ Functions used :
;
; 3 +
; 2 -
; 13 ==
; 1 <
; 3 >
; 12 !
; 5 &&
; 1 ||
; 9 Len(
; 2 Upper()
; 1 Left()
; 2 Space()
; 1 Chr()
; 1 Asc()
; 1 Inkey()
; 1 GetX()
; 1 CurColor()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 1 While/EndWhile
; 9 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------