home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games 1995 January / amigagames-1995-01.iso / archive / userbox / publicdomain / ged313.lha / Install / data / main / GoldED / arexx / errors.ged < prev    next >
Text File  |  1993-07-15  |  1KB  |  50 lines

  1. /* $VER: 0.9 Load error file */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT'                              /* lock GUI, gain access   */
  9. OPTIONS FAILAT 6                            /* ignore warnings         */
  10. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  11.  
  12.  
  13. /* ------------------------- INSERT YOUR CODE HERE: -------------------- */
  14.  
  15. if exists("T:ERRORS") then 
  16.  
  17.     do
  18.         R     = OPEN('ERRORS', "T:ERRORS", 'R')
  19.         bytes = SEEK('ERRORS', 0, 'E')
  20.         R     = CLOSE('ERRORS')
  21.     end
  22. else
  23.     bytes = 0
  24.  
  25. if (bytes = 0) then
  26.  
  27.     do
  28.         'QUERY CAT'
  29.  
  30.         if (result = "deutsch") then
  31.             'REQUEST BODY "Keine Fehler !"'
  32.         else
  33.             'REQUEST BODY "No errors !"'
  34.     end
  35.  
  36. else
  37.  
  38.    'OPEN NEW T:ERRORS'
  39.  
  40. /* ---------------------------- END OF YOUR CODE ----------------------- */
  41.  
  42. 'UNLOCK' /* VERY important: unlock GUI */
  43. EXIT
  44.  
  45. SYNTAX:
  46.  
  47. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  48. 'UNLOCK'
  49. EXIT
  50.