home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PCBOARD
/
LOPBCK40.ZIP
/
GETNUM.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-12-11
|
6KB
|
255 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
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer TINTEGER007(99)
Integer INTEGER008
Integer INTEGER009
BigStr TBIGSTR001(1)
BigStr TBIGSTR002(1)
BigStr BIGSTR003
BigStr TBIGSTR004(1)
BigStr BIGSTR005
BigStr BIGSTR006
BigStr TBIGSTR007(4)
BigStr BIGSTR008
;------------------------------------------------------------------------------
Copy PPEPath() + "callback.key", PPEPath() + "getnum.key"
FOpen 1, PPEPath() + PPEName() + ".KEY", 0, 0
For INTEGER002 = 1 To 4
FGet 1, TBIGSTR007(INTEGER002)
Next
FClose 1
BIGSTR008 = TBIGSTR007(1) + TBIGSTR007(2) + TBIGSTR007(3)
BIGSTR008 = Strip(BIGSTR008, " ")
For INTEGER006 = 1 To Len(BIGSTR008)
TINTEGER007(INTEGER006) = Asc(Mid(BIGSTR008, INTEGER006, 1))
Next
INTEGER008 = 0
For INTEGER006 = 1 To 80
INTEGER008 = INTEGER008 + TINTEGER007(INTEGER006)
Next
INTEGER009 = INTEGER008 * 709
If (INTEGER009 == TBIGSTR007(4)) Goto LABEL001
PrintLn "@X70┌────────────────────────────────────────────────────────────────────────────@X7F┐@X0F"
PrintLn "@X70│ @X74Sorry, but this utility is just for registered users. Why not read the @X7F│@X0F"
PrintLn "@X70│ @X74Docs and find out how you to can become a registered user. @X7F│@X0F"
PrintLn "@X70└@X7F────────────────────────────────────────────────────────────────────────────┘@X0F"
End
:LABEL001
Cls
PrintLn "@X70┌────────────────────────────────────────────────────────────────────────────@X7F┐@X0F"
PrintLn "@X70│ @X71This program will read your @X74USERS @X71file and get the @X7EUSER @X71name, @X7EDATA @X71number @X7F│@X0F"
PrintLn "@X70│ @X71and the @X7EVOICE @X71number for each of your registered users, this will then be @X7F│@X0F"
PrintLn "@X70│ @X71formatted into a @X79CALLBACK.FON @X71file for use with the LoopBack(tm) program. @X7F│@X0F"
PrintLn "@X70│ @X71Please note! The USERS file is just read from, there is @XF4NO @X71writing to it! @X7F│@X0F"
PrintLn "@X70│ @X71If you have a current CALLBACK.FON it will be appendeded to with all of @X7F│@X0F"
PrintLn "@X70│ @X71the information found. @X7F│@X0F"
PrintLn "@X70└@X7F────────────────────────────────────────────────────────────────────────────@X7F┘@X0F"
InputYN " @X0EDo you wish to continue (Y/N) ", BIGSTR006, 10
AnsiPos 1, 9
If (Upper(BIGSTR006) == "N") Then
End
Endif
BIGSTR005 = Date()
BIGSTR003 = ReadLine(PCBDat(), 29)
INTEGER001 = FileInf(BIGSTR003, 4) / 400
Redim TBIGSTR001, INTEGER001
Redim TBIGSTR002, INTEGER001
Redim TBIGSTR004, INTEGER001
INTEGER003 = 0
INTEGER004 = 61
INTEGER005 = 1
FOpen 1, BIGSTR003, 0, 0
StartDisp 1
PrintLn "@X70┌────────────────────────────────────────────────────────────────────────────@X7F┐@X0F"
PrintLn "@X70│ @X71Reading in Business / Data # @X7F│@X0F"
PrintLn "@X70└@X7F────────────────────────────────────────────────────────────────────────────┘@X0F"
For INTEGER002 = 1 To INTEGER001
AnsiPos 32, 10
FSeek 1, INTEGER004, 0
INTEGER003 = INTEGER003 + 400
INTEGER004 = INTEGER004 + 400
FRead 1, TBIGSTR001(INTEGER005), 13
Color 116
PrintLn INTEGER002
Inc INTEGER005
Next
FClose 1
AnsiPos 40, 10
Color 126
PrintLn "COMPLETE! @X751 @X7Eof @X764"
INTEGER003 = 0
INTEGER004 = 74
INTEGER005 = 1
FOpen 1, BIGSTR003, 0, 0
AnsiPos 1, 12
PrintLn "@X70┌────────────────────────────────────────────────────────────────────────────@X7F┐@X0F"
PrintLn "@X70│ @X71Reading in Voice / Home # @X7F│@X0F"
PrintLn "@X70└@X7F────────────────────────────────────────────────────────────────────────────┘@X0F"
For INTEGER002 = 1 To INTEGER001
AnsiPos 1, 2
FSeek 1, INTEGER004, 0
INTEGER003 = INTEGER003 + 400
INTEGER004 = INTEGER004 + 400
FRead 1, TBIGSTR002(INTEGER005), 13
AnsiPos 32, 13
Color 116
PrintLn INTEGER002
Inc INTEGER005
Next
FClose 1
AnsiPos 40, 13
Color 126
PrintLn "COMPLETE! @X752 @X7Eof @X764"
INTEGER003 = 0
INTEGER004 = 0
INTEGER005 = 1
FOpen 1, BIGSTR003, 0, 0
For INTEGER002 = 1 To INTEGER001
AnsiPos 1, 15
PrintLn "@X70┌────────────────────────────────────────────────────────────────────────────@X7F┐"
PrintLn "@X70│ @X71 Reading in User Name # @X7F│"
PrintLn "@X70└@X7F────────────────────────────────────────────────────────────────────────────┘"
FSeek 1, INTEGER004, 0
INTEGER003 = INTEGER003 + 400
INTEGER004 = INTEGER004 + 400
FRead 1, TBIGSTR004(INTEGER005), 25
AnsiPos 32, 16
Color 116
PrintLn INTEGER002
Inc INTEGER005
Next
FClose 1
AnsiPos 40, 16
Color 116
PrintLn "@X7ECOMPLETE! @X753 @X7Eof @X764"
INTEGER005 = 1
FAppend 2, PPEPath() + "CALLBACK.FON", 2, 0
AnsiPos 1, 18
PrintLn "@X70┌────────────────────────────────────────────────────────────────────────────@X7F┐@X0F"
PrintLn "@X70│ @X71Writing Record # @X7F│@X0F"
PrintLn "@X70└@X7F────────────────────────────────────────────────────────────────────────────┘@X0F"
For INTEGER002 = 1 To INTEGER001
TBIGSTR001(INTEGER005) = Strip(TBIGSTR001(INTEGER005), "-")
TBIGSTR001(INTEGER005) = Strip(TBIGSTR001(INTEGER005), " ")
TBIGSTR001(INTEGER005) = Strip(TBIGSTR001(INTEGER005), "(")
TBIGSTR001(INTEGER005) = Strip(TBIGSTR001(INTEGER005), ")")
TBIGSTR002(INTEGER005) = Strip(TBIGSTR002(INTEGER005), "-")
TBIGSTR002(INTEGER005) = Strip(TBIGSTR002(INTEGER005), " ")
TBIGSTR002(INTEGER005) = Strip(TBIGSTR002(INTEGER005), "(")
TBIGSTR002(INTEGER005) = Strip(TBIGSTR002(INTEGER005), ")")
TBIGSTR004(INTEGER005) = RTrim(TBIGSTR004(INTEGER005), " ")
AnsiPos 32, 19
Color 116
PrintLn INTEGER002
FPutLn 2, Chr(34) + TBIGSTR001(INTEGER005) + Chr(34) + Chr(44) + Chr(34) + TBIGSTR004(INTEGER005) + Chr(34) + Chr(44) + Chr(34) + BIGSTR005 + Chr(34)
FPutLn 2, Chr(34) + TBIGSTR002(INTEGER005) + Chr(34) + Chr(44) + Chr(34) + TBIGSTR004(INTEGER005) + Chr(34) + Chr(44) + Chr(34) + BIGSTR005 + Chr(34)
Inc INTEGER005
Next
FClose 2
AnsiPos 40, 19
Color 126
PrintLn "ALL DONE! @X754 @X7Eof @X764"
Color 15
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 1 Cls
; 9 Color
; 16 Goto
; 48 Let
; 32 PrintLn
; 9 If
; 4 FOpen
; 1 FAppend
; 5 FClose
; 1 FGet
; 2 FPutLn
; 1 StartDisp
; 1 InputYN
; 4 Inc
; 13 AnsiPos
; 3 FSeek
; 3 FRead
; 3 Redim
; 1 Copy
;
;
; ■ Functions used :
;
; 1 *
; 1 /
; 41 +
; 2 ==
; 7 <
; 7 <=
; 14 >=
; 8 !
; 14 &&
; 7 ||
; 2 Len(
; 1 Upper()
; 1 Mid()
; 16 Chr()
; 1 Asc()
; 1 RTrim()
; 1 Date()
; 9 Strip()
; 1 PCBDat()
; 4 PPEPath()
; 1 ReadLine()
; 1 FileInf()
; 1 PPEName()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 7 For/Next
; 0 While/EndWhile
; 1 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------