home *** CD-ROM | disk | FTP | other *** search
/ Carsten's PPE Collection / Carstens_PPE_Collection_2007.zip / T / THTTP2B3.ZIP / UPCR.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-07-26  |  1KB  |  142 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     Integer  INTEGER002
  21.     Integer  INTEGER003
  22.     Integer  INTEGER004
  23.     Integer  INTEGER005
  24.     Integer  INTEGER006
  25.     String   STRING001
  26.     String   STRING002
  27.     String   STRING003
  28.  
  29. ;------------------------------------------------------------------------------
  30.  
  31.     CdChkOff
  32.     INTEGER004 = GetY()
  33.     Color 0
  34.     AnsiPos 11, INTEGER004
  35.     Print "@X00@OPTEXT@"
  36.     STRING001 = ScrText(11, INTEGER004, 12, 0)
  37.     STRING001 = LTrim(STRING001, " ")
  38.     INTEGER005 = CurConf()
  39.     If (INTEGER005 == 0) Then
  40.         INTEGER006 = 243
  41.     Else
  42.         INTEGER006 = INTEGER005 * 548 + 243
  43.     Endif
  44.     STRING003 = ReadLine(PCBDat(), 31)
  45.     FOpen 1, STRING003 + ".@@@", 0, 0
  46.     FSeek 1, INTEGER006, 0
  47.     FRead 1, STRING002, 25
  48.     FClose 1
  49.     STRING001 = STRING002 + STRING001
  50.     If (Exist(STRING001)) Then
  51.         FCreate 1, PPEPath() + PPEName() + "run." + String(PcbNode()), 1, 0
  52.         FClose 1
  53.         INTEGER002 = FileInf(STRING001, 4)
  54.         If (Exist(PPEPath() + PPEName() + String(PcbNode()) + ".tmp")) Then
  55.             FOpen 3, PPEPath() + PPEName() + String(PcbNode()) + ".tmp", 0, 0
  56.             FGet 3, STRING002
  57.             Tokenize STRING002
  58.             GetToken INTEGER001
  59.             GetToken INTEGER003
  60.             INTEGER001 = INTEGER001 + INTEGER002
  61.             INTEGER003 = INTEGER003 + 1
  62.             FClose 3
  63.             FCreate 3, PPEPath() + PPEName() + String(PcbNode()) + ".tmp", 1, 0
  64.             FPutLn 3, String(INTEGER001) + " " + String(INTEGER003)
  65.             FClose 3
  66.             Goto LABEL001
  67.         Endif
  68.         FCreate 3, PPEPath() + PPEName() + String(PcbNode()) + ".tmp", 1, 0
  69.         FPutLn 3, String(INTEGER002) + " " + "1"
  70.         FClose 3
  71.     Endif
  72.     :LABEL001
  73.     Stop
  74.  
  75. ;------------------------------------------------------------------------------
  76. ;
  77. ; Usage report (before postprocessing)
  78. ;
  79. ; ■ Statements used :
  80. ;
  81. ;    1       Color 
  82. ;    5       Goto 
  83. ;    11      Let 
  84. ;    1       Print 
  85. ;    3       If 
  86. ;    3       FCreate 
  87. ;    2       FOpen 
  88. ;    5       FClose 
  89. ;    1       FGet 
  90. ;    2       FPutLn 
  91. ;    1       CdChkOff
  92. ;    1       Tokenize 
  93. ;    2       GetToken 
  94. ;    1       Stop
  95. ;    1       AnsiPos 
  96. ;    1       FSeek 
  97. ;    1       FRead 
  98. ;
  99. ;
  100. ; ■ Functions used :
  101. ;
  102. ;    1       *
  103. ;    24      +
  104. ;    1       ==
  105. ;    3       !
  106. ;    1       LTrim()
  107. ;    8       String()
  108. ;    1       CurConf()
  109. ;    1       PCBDat()
  110. ;    5       PPEPath()
  111. ;    5       PcbNode()
  112. ;    1       ReadLine()
  113. ;    2       Exist()
  114. ;    1       GetY()
  115. ;    1       FileInf()
  116. ;    5       PPEName()
  117. ;    1       ScrText()
  118. ;
  119. ;------------------------------------------------------------------------------
  120. ;
  121. ; Analysis flags : d
  122. ;
  123. ; d - Access PCBOARD.DAT ■ 2
  124. ;     Program gets the full pathname to PCBOARD.DAT, this may be usefull
  125. ;     for many PPE so they can find various informations on the system
  126. ;     (system paths, max number of lines in messages, ...) but it may also
  127. ;     be a way to gather vital informations.
  128. ;     ■ Search for : PCBDAT()
  129. ;
  130. ;------------------------------------------------------------------------------
  131. ;
  132. ; Postprocessing report
  133. ;
  134. ;    0       For/Next
  135. ;    0       While/EndWhile
  136. ;    3       If/Then or If/Then/Else
  137. ;    0       Select Case
  138. ;
  139. ;------------------------------------------------------------------------------
  140. ;                 AEGiS Corp - Break the routines, code against the machines!
  141. ;------------------------------------------------------------------------------
  142.