home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carsten's PPE Collection
/
Carstens_PPE_Collection_2007.zip
/
S
/
SVOTE300.ZIP
/
CHKVOTE.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-05-14
|
2KB
|
159 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
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
;------------------------------------------------------------------------------
STRING005 = ReadLine(PPEPath() + "VOTE.CFG", 14)
If (Exist(STRING005 + "CHKTEXT" + LangExt()) == 0) Then
Color 12
PrintLn "Error: CHKTEXT.XXX is missing, please notify the Sysop."
End
Endif
FOpen 1, STRING005 + "CHKTEXT" + LangExt(), 2, 0
FGet 1, STRING006
FGet 1, STRING007
FGet 1, STRING008
FGet 1, STRING009
FClose 1
Print STRING006
STRING004 = ReadLine(PPEPath() + "VOTE.CFG", 13)
FOpen 1, STRING004 + "VOTE.LST", 2, 0
While (Ferr(1) == 0) Do
FGet 1, STRING001
If (Len(STRING001) == 0) Break
Inc INTEGER002
INTEGER006 = 0
BOOLEAN001 = 0
While (BOOLEAN001 == 0) Do
Inc INTEGER006
STRING002 = ReadLine(STRING004 + STRING001 + ".VSI", INTEGER006)
If (Len(STRING002) == 0) Break
If (Left(Upper(STRING002), Len(U_Name())) == U_Name()) Then
Inc INTEGER001
Break
Endif
EndWhile
EndWhile
FClose 1
For INTEGER004 = 1 To Len(StripAtx(STRING006))
Print Chr(8) + Chr(32) + Chr(8)
Next
If (INTEGER001 < INTEGER002) Then
INTEGER003 = INTEGER002 - INTEGER001
While (InStr(STRING007, "@NUMVOTE@") <> 0) Do
INTEGER005 = InStr(STRING007, "@NUMVOTE@") - 1
STRING007 = String(Left(STRING007, INTEGER005) + String(INTEGER003) + Right(STRING007, Len(STRING007) - INTEGER005 - 9))
EndWhile
PrintLn STRING007
Newline
STRING003 = "N"
InputStr STRING008, STRING003, 7, 1, "YyNn", 64 + 2 + 4 + 8
If (STRING003 == "Y") Then
Call PPEPath() + "VOTE.PPE"
PrintLn STRING009
Endif
Endif
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 1 Color
; 15 Goto
; 11 Let
; 2 Print
; 3 PrintLn
; 10 If
; 2 FOpen
; 2 FClose
; 5 FGet
; 1 InputStr
; 3 Inc
; 1 Newline
; 1 Call
;
;
; ■ Functions used :
;
; 18 +
; 4 -
; 7 ==
; 1 <>
; 2 <
; 1 <=
; 2 >=
; 8 !
; 2 &&
; 1 ||
; 6 Len(
; 1 Upper()
; 2 Left()
; 1 Right()
; 1 Ferr()
; 3 Chr()
; 2 InStr()
; 2 U_Name()
; 2 StripAtx()
; 2 String()
; 3 PPEPath()
; 3 ReadLine()
; 1 Exist()
; 2 LangExt()
;
;------------------------------------------------------------------------------
;
; Analysis flags : C
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 3 While/EndWhile
; 4 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------